Skip to content

Commit fcca254

Browse files
committed
Revert "[wip] Don't insert the id_to_obj_tbl ref if the obj is garbage"
This reverts commit 0429c26.
1 parent b02621a commit fcca254

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,8 +1872,7 @@ static void
18721872
build_id_to_obj_i(VALUE obj, void *data)
18731873
{
18741874
st_table *id_to_obj_tbl = (st_table *)data;
1875-
1876-
if (rb_shape_obj_has_id(obj) && !rb_gc_impl_garbage_object_p(rb_gc_get_objspace(), obj)) {
1875+
if (rb_shape_obj_has_id(obj)) {
18771876
st_insert(id_to_obj_tbl, rb_obj_id(obj), obj);
18781877
}
18791878
}

0 commit comments

Comments
 (0)