Update heap_pages_himem after freeing pages
This commit is contained in:
parent
be2efb118f
commit
b6d599d76e
Notes:
git
2020-09-20 23:14:11 +09:00
6
gc.c
6
gc.c
@ -1769,6 +1769,12 @@ heap_pages_free_unused_pages(rb_objspace_t *objspace)
|
|||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct heap_page *hipage = heap_pages_sorted[heap_allocated_pages - 1];
|
||||||
|
RVALUE *himem = hipage->start + hipage->total_slots;
|
||||||
|
GC_ASSERT(himem <= heap_pages_himem);
|
||||||
|
heap_pages_himem = himem;
|
||||||
|
|
||||||
GC_ASSERT(j == heap_allocated_pages);
|
GC_ASSERT(j == heap_allocated_pages);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user