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