mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Clear all old flags, even if we change the gc mode during the major gc.
This commit is contained in:
@@ -1143,13 +1143,8 @@ static void
|
||||
change_gen_gc_mode(mrb_state *mrb, mrb_int enable)
|
||||
{
|
||||
if (is_generational(mrb) && !enable) {
|
||||
if (is_major_gc(mrb)) {
|
||||
advance_phase(mrb, GC_STATE_NONE);
|
||||
}
|
||||
else {
|
||||
clear_all_old(mrb);
|
||||
gc_assert(mrb->gc_state == GC_STATE_NONE);
|
||||
}
|
||||
clear_all_old(mrb);
|
||||
gc_assert(mrb->gc_state == GC_STATE_NONE);
|
||||
mrb->gc_full = FALSE;
|
||||
}
|
||||
else if (!is_generational(mrb) && enable) {
|
||||
|
||||
Reference in New Issue
Block a user