Merge pull request #2513 from suzukaze/refactor-gc

Refactor incremental_sweep_phase() in gc.c
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-08-07 00:00:31 +09:00
+1 -1
View File
@@ -863,7 +863,7 @@ incremental_sweep_phase(mrb_state *mrb, size_t limit)
RVALUE *e = p + MRB_HEAP_PAGE_SIZE;
size_t freed = 0;
mrb_bool dead_slot = TRUE;
int full = (page->freelist == NULL);
mrb_bool full = (page->freelist == NULL);
if (is_minor_gc(mrb) && page->old) {
/* skip a slot which doesn't contain any young object */