We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3483e6d commit 39725a4Copy full SHA for 39725a4
gc.c
@@ -2943,7 +2943,7 @@ finalize_list(rb_objspace_t *objspace, VALUE zombie)
2943
run_final(objspace, zombie);
2944
2945
RZOMBIE(zombie)->basic.flags = 0;
2946
- heap_pages_final_slots--;
+ if (LIKELY(heap_pages_final_slots)) heap_pages_final_slots--;
2947
page->final_slots--;
2948
page->free_slots++;
2949
heap_page_add_freeobj(objspace, GET_HEAP_PAGE(zombie), zombie);
0 commit comments