From 8f6f546ab3729fb97455c81226ad8cba4e8e8d0f Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Sat, 16 Nov 2013 11:43:40 -0800 Subject: [PATCH] Bump default heap size. --- src/common.h | 2 +- src/vm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.