mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-05 08:10:05 +00:00
refactored stress test
This commit is contained in:
parent
aaed92424f
commit
4c4b5eae8d
@ -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
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user