GitHub

@@ -1240,14 +1240,12 @@ clear_all_old(mrb_state *mrb, mrb_gc *gc)

12401240

/* finish the half baked GC */

12411241

incremental_gc_finish(mrb, gc);

12421242

}

1243-

else {

1244-

/* Sweep the dead objects, then reset all the live objects

1245-

* (including all the old objects, of course) to white. */

1246-

gc->generational = FALSE;

1247-

prepare_incremental_sweep(mrb, gc);

1248-

incremental_gc_finish(mrb, gc);

1249-

gc->generational = TRUE;

1250-

}

1243+

/* Sweep the dead objects, then reset all the live objects

1244+

* (including all the old objects, of course) to white. */

1245+

gc->generational = FALSE;

1246+

prepare_incremental_sweep(mrb, gc);

1247+

incremental_gc_finish(mrb, gc);

1248+

gc->generational = TRUE;

12511249

/* The gray objects have already been painted as white */

12521250

gc->atomic_gray_list = gc->gray_list = NULL;

12531251

}

Read the original on github.com ↗