summaryrefslogtreecommitdiff
path: root/include/ruby/internal/intern/class.h
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2024-02-29 13:17:22 +0100
committerJean Boussier <jean.boussier@gmail.com>2024-03-01 08:23:38 +0100
commite626da82eae3d437b84d4f9ead0164d436b08e1a (patch)
tree058421f46c3fe9eb0b1f1445cb3f4f0c902127f7 /include/ruby/internal/intern/class.h
parent5d76fe6b2a413c71374c9f799c7a1023e2002457 (diff)
Don't pin named structs defined in Ruby
[Bug #20311] `rb_define_class_under` assumes it's called from C and that the reference might be held in a C global variable, so it adds the class to the VM root. In the case of `Struct.new('Name')` it's wasteful and make the struct immortal.
Diffstat (limited to 'include/ruby/internal/intern/class.h')
0 files changed, 0 insertions, 0 deletions