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
-- stressing the GC
local i = 0
while true do
for (var i = 0; ; i=i+1) do
var x = Test("Hello world " .. i)
x.print()
i = i + 1
end

View File

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