Commit f42e6287 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2513 from suzukaze/refactor-gc

Refactor incremental_sweep_phase() in gc.c
parents 62776e89 5eb3a8ca
...@@ -863,7 +863,7 @@ incremental_sweep_phase(mrb_state *mrb, size_t limit) ...@@ -863,7 +863,7 @@ incremental_sweep_phase(mrb_state *mrb, size_t limit)
RVALUE *e = p + MRB_HEAP_PAGE_SIZE; RVALUE *e = p + MRB_HEAP_PAGE_SIZE;
size_t freed = 0; size_t freed = 0;
mrb_bool dead_slot = TRUE; mrb_bool dead_slot = TRUE;
int full = (page->freelist == NULL); mrb_bool full = (page->freelist == NULL);
if (is_minor_gc(mrb) && page->old) { if (is_minor_gc(mrb) && page->old) {
/* skip a slot which doesn't contain any young object */ /* skip a slot which doesn't contain any young object */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment