Skip to content

Commit 0af170f

Browse files
committed
gc.c: dead_slot is boolean; ref #3339
1 parent 965690c commit 0af170f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/gc.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,15 +1004,16 @@ incremental_sweep_phase(mrb_state *mrb, mrb_gc *gc, size_t limit)
10041004
p->as.free.next = page->freelist;
10051005
page->freelist = (struct RBasic*)p;
10061006
freed++;
1007-
} else {
1008-
dead_slot = 0;
1007+
}
1008+
else {
1009+
dead_slot = FALSE;
10091010
}
10101011
}
10111012
}
10121013
else {
10131014
if (!is_generational(gc))
10141015
paint_partial_white(gc, &p->as.basic); /* next gc target */
1015-
dead_slot = 0;
1016+
dead_slot = FALSE;
10161017
}
10171018
p++;
10181019
}

0 commit comments

Comments
 (0)