mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
gc.c: dead_slot is boolean; ref #3339
This commit is contained in:
@@ -1004,15 +1004,16 @@ incremental_sweep_phase(mrb_state *mrb, mrb_gc *gc, size_t limit)
|
||||
p->as.free.next = page->freelist;
|
||||
page->freelist = (struct RBasic*)p;
|
||||
freed++;
|
||||
} else {
|
||||
dead_slot = 0;
|
||||
}
|
||||
else {
|
||||
dead_slot = FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!is_generational(gc))
|
||||
paint_partial_white(gc, &p->as.basic); /* next gc target */
|
||||
dead_slot = 0;
|
||||
dead_slot = FALSE;
|
||||
}
|
||||
p++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user