aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index ee7bb84037..3e0cb3e192 100644
--- a/gc.c
+++ b/gc.c
@@ -2627,8 +2627,7 @@ gc_clear_mark_on_sweep_slots(rb_objspace_t *objspace)
if (objspace->heap.sweep_slots) {
while (heaps_increment(objspace));
while (objspace->heap.sweep_slots) {
- scan = objspace->heap.sweep_slots;
- gc_clear_slot_bits(scan);
+ slot_sweep(objspace, objspace->heap.sweep_slots);
objspace->heap.sweep_slots = objspace->heap.sweep_slots->next;
}
}