From be9d68c3f1f8bbfcebfb7027378eb8d8bd40f243 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Fri, 28 Jul 2017 21:33:28 -0400 Subject: [PATCH] Only preemtively grow small obj heaps --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index f04d8c5a..e9482e5b 100644 --- a/gc.c +++ b/gc.c @@ -1077,7 +1077,7 @@ void gc_collector_sweep() } // TODO: this loop only includes smallest 2 heaps, is that sufficient?? - for (heap_type = 0; heap_type < 4; heap_type++) { + for (heap_type = 0; heap_type < 2; heap_type++) { while ( ck_pr_load_ptr(&(m->cached_heap_free_sizes[heap_type])) < (ck_pr_load_ptr(&(m->cached_heap_total_sizes[heap_type])) * GC_FREE_THRESHOLD)) { #if GC_DEBUG_TRACE