Skip to content

Commit 2df7489

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 27b477f commit 2df7489

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
@@ -1873,8 +1873,7 @@ static void
18731873
build_id_to_obj_i(VALUE obj, void *data)
18741874
{
18751875
st_table *id_to_obj_tbl = (st_table *)data;
1876-
1877-
if (rb_shape_obj_has_id(obj) && !rb_gc_impl_garbage_object_p(rb_gc_get_objspace(), obj)) {
1876+
if (rb_shape_obj_has_id(obj)) {
18781877
st_insert(id_to_obj_tbl, rb_obj_id(obj), obj);
18791878
}
18801879
}

0 commit comments

Comments
 (0)