mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
gc.c: check if the struct has fields before marking the fields_obj
If GC trigger in the middle of `struct_alloc`, and the struct has more than 3 elements, then `fields_obj` reference is garbage. We must first check the shape to know if it was actually initialized.
This commit is contained in:
parent
228d13f6ed
commit
8d1a6bc48b
Notes:
git
2025-12-03 20:15:43 +00:00
Loading…
x
Reference in New Issue
Block a user