Skip to content

Commit 19c82be

Browse files
committed
Parallel sweep: fix rb_gc_obj_needs_cleanup_p() for T_ZOMBIE
1 parent 947a598 commit 19c82be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,10 @@ rb_gc_obj_needs_cleanup_p(VALUE obj)
14021402
case T_COMPLEX:
14031403
return rb_shape_has_fields(shape_id);
14041404

1405+
case T_ZOMBIE:
1406+
RUBY_ASSERT(flags & FL_FREEZE);
1407+
return true;
1408+
14051409
default:
14061410
UNREACHABLE_RETURN(true);
14071411
}

0 commit comments

Comments
 (0)