Project

General

Profile

« Previous | Next » 

Revision e626da82

Added by byroot (Jean Boussier) over 1 year ago

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.