Skip to content

Commit

Permalink
gc.c: dead_slot is boolean; ref #3339
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Dec 10, 2016
1 parent 965690c commit 0af170f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down

0 comments on commit 0af170f

Please sign in to comment.