summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 3fc465b482..844e104ecc 100644
--- a/gc.c
+++ b/gc.c
@@ -1079,6 +1079,7 @@ add_heap_slots(rb_objspace_t *objspace, size_t add)
for (i = 0; i < add; i++) {
assign_heap_slot(objspace);
}
+ heaps_inc = 0;
}
static void
@@ -1095,7 +1096,6 @@ init_heap(rb_objspace_t *objspace)
}
#endif
- heaps_inc = 0;
objspace->profile.invoke_time = getrusage_time();
finalizer_table = st_init_numtable();
}