diff --git a/src/common.h b/src/common.h index aec2fa59..66de502d 100644 --- a/src/common.h +++ b/src/common.h @@ -3,7 +3,7 @@ // Define this to stress test the GC. It will perform a collection before every // allocation. -#define DEBUG_GC_STRESS +//#define DEBUG_GC_STRESS // Define this to log memory operations. //#define TRACE_MEMORY diff --git a/src/vm.c b/src/vm.c index 284c3b5c..3c6bf0fd 100644 --- a/src/vm.c +++ b/src/vm.c @@ -30,7 +30,7 @@ VM* newVM() vm->totalAllocated = 0; // TODO(bob): Make this configurable. - vm->nextGC = 1024 * 1024; + vm->nextGC = 1024 * 1024 * 10; // Clear out the global variables. This ensures they are NULL before being // initialized in case we do a garbage collection before one gets initialized.