From 409937c1fae4a734c9666ea78da779794dd51a55 Mon Sep 17 00:00:00 2001 From: CPunch Date: Sat, 26 Aug 2023 15:03:56 -0500 Subject: [PATCH] fix vm.collect() we don't freeze the vm on entry to C functions now --- src/cbaselib.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/cbaselib.c b/src/cbaselib.c index 7cadc9b..8a890ff 100644 --- a/src/cbaselib.c +++ b/src/cbaselib.c @@ -948,16 +948,8 @@ int cosmoB_vnewindexBProto(CState *state, int nargs, CValue *args) // vm.collect() int cosmoB_vcollect(CState *state, int nargs, CValue *args) { - // first, unfreeze the state (we start frozen on entry to any C Function) - cosmoM_unfreezeGC(state); - - // now force a garbage collection + // force a garbage collection cosmoM_collectGarbage(state); - - // and re-freeze the state - cosmoM_freezeGC(state); - - // the end! return 0; }