gc.c (incremental_sweep_phase): freed need not to be smaller than page size

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-06-25 23:14:32 +09:00
parent b2110c23a1
commit 695ad6ea95
+1 -1
View File
@@ -1139,7 +1139,7 @@ incremental_sweep_phase(mrb_state *mrb, mrb_gc *gc, size_t limit)
}
/* free dead slot */
if (dead_slot && freed < MRB_HEAP_PAGE_SIZE) {
if (dead_slot) {
mrb_heap_page *next = page->next;
unlink_heap_page(gc, page);