Move fprintf to GC trace

This commit is contained in:
Justin Ethier 2016-04-12 22:37:06 -04:00
parent a05e3af2f3
commit b0b02c0dc7

4
gc.c
View file

@ -400,9 +400,9 @@ int gc_grow_heap(gc_heap *h, int heap_type, size_t size, size_t chunk_size)
}
if (new_size == 0)
new_size = prev_size + h_last->size;
//#if GC_DEBUG_TRACE
#if GC_DEBUG_TRACE
fprintf(stderr, "Growing heap %d new page size = %zu\n", heap_type, new_size);
//#endif
#endif
}
// h_last = gc_heap_last(h);
// cur_size = h_last->size;