summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2021-07-22 09:19:04 -0400
committerPeter Zhu <peter@peterzhu.ca>2021-07-22 10:10:23 -0400
commit018f3961ae83ab48e40f8041cd4cfb543e9b1d1e (patch)
tree1408ad9c15f406411025142e4df6f17f43c9fd3b /gc.c
parent75f60e5a460b96b3130fbc941ddcce86df0fc2da (diff)
Don't set flags in finalize_list
The call after it to `heap_page_add_freeobj` will set the flags.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4668
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 239bf95c46..4a087caf4c 100644
--- a/gc.c
+++ b/gc.c
@@ -4056,7 +4056,6 @@ finalize_list(rb_objspace_t *objspace, VALUE zombie)
obj_free_object_id(objspace, zombie);
}
- RZOMBIE(zombie)->basic.flags = 0;
GC_ASSERT(heap_pages_final_slots > 0);
GC_ASSERT(page->final_slots > 0);