Skip to content

Commit

Permalink
finish half-baked GC cycle before starting full GC; #1447
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Aug 8, 2013
1 parent 1e87bf6 commit 30f8606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 30f8606

Please sign in to comment.