mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
finish half-baked GC cycle before starting full GC; #1447
This commit is contained in:
@@ -1003,8 +1003,8 @@ mrb_full_gc(mrb_state *mrb)
|
||||
GC_INVOKE_TIME_REPORT("mrb_full_gc()");
|
||||
GC_TIME_START;
|
||||
|
||||
if (mrb->gc_state == GC_STATE_SWEEP) {
|
||||
/* finish sweep phase */
|
||||
if (mrb->gc_state != GC_STATE_NONE) {
|
||||
/* finish half baked GC cycle */
|
||||
incremental_gc_until(mrb, GC_STATE_NONE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user