We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73f7741 commit 4965592Copy full SHA for 4965592
1 file changed
gc.c
@@ -1872,8 +1872,7 @@ static void
1872
build_id_to_obj_i(VALUE obj, void *data)
1873
{
1874
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)) {
+ if (rb_shape_obj_has_id(obj)) {
1877
st_insert(id_to_obj_tbl, rb_obj_id(obj), obj);
1878
}
1879
0 commit comments