summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index af91bba7..9128e9d9 100644
--- a/gc.c
+++ b/gc.c
@@ -674,6 +674,11 @@ void gc(void)
assert (gc_enabled);
+#if CONFIG_GEN_GC
+ if (malloc_bytes - prev_malloc_bytes >= opt_gc_delta)
+ full_gc = 1;
+#endif
+
save_context(mc);
gc_enabled = 0;
mark(&mc, &gc_stack_top);