Permalink
Browse files

gc.c: dead_slot is boolean; ref #3339

  • Loading branch information...
matz committed Dec 10, 2016
1 parent 965690c commit 0af170fbec1bbf412b009117736d22e6f5c39b03
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/gc.c
View
@@ -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++;
}

0 comments on commit 0af170f

Please sign in to comment.