summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-12-03 20:40:22 +0100
committerJean Boussier <jean.boussier@gmail.com>2025-12-03 21:15:10 +0100
commit8d1a6bc48b1a45cacd8b1f1c42f71d5967a27bba (patch)
treeda392e5f2c550d576cecb05223d6f10a4912d39d /include/ruby
parent228d13f6ed914d1e7f6bd2416e3f5be8283be865 (diff)
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.
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions