refactored stress test

This commit is contained in:
CPunch 2020-11-17 15:13:51 -06:00
parent aaed92424f
commit 4c4b5eae8d
2 changed files with 1 additions and 9 deletions

View File

@ -9,10 +9,7 @@ class Test
end end
-- stressing the GC -- stressing the GC
local i = 0 for (var i = 0; ; i=i+1) do
while true do
var x = Test("Hello world " .. i) var x = Test("Hello world " .. i)
x.print() x.print()
i = i + 1
end end

View File

@ -108,11 +108,6 @@ CObjString *cosmoV_concat(CState *state, CObjString *strA, CObjString *strB) {
bool cosmoV_execute(CState *state); bool cosmoV_execute(CState *state);
typedef enum {
CALL_CLOSURE,
CALL_CFUNCTION
} preCallResult;
static inline void callCFunction(CState *state, CosmoCFunction cfunc, int args, int offset) { static inline void callCFunction(CState *state, CosmoCFunction cfunc, int args, int offset) {
StkPtr savedBase = cosmoV_getTop(state, args); StkPtr savedBase = cosmoV_getTop(state, args);