Refactor incremental_sweep_phase() in gc.c

This commit is contained in:
Jun Hiroe
2014-08-06 23:22:05 +09:00
parent 8dbf7787d5
commit 5eb3a8caa6
+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 */