diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-04-14 16:25:06 -0400 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-04-16 11:06:31 -0400 |
commit | ad3d4e87d7e20c7e7ff2836567a44bb29368f3ec (patch) | |
tree | 12ccb4503d6dce6d5d355d8beeacd691e78f7033 /class.c | |
parent | fac814c2dc31afef272b45392a7389ef0bfa3a4f (diff) |
Move RCLASS_CLONED to rb_classext_struct
This commit moves RCLASS_CLONED from the flags to the
rb_classext_struct. This frees the FL_USER1 bit.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7719
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -508,8 +508,8 @@ rb_mod_init_copy(VALUE clone, VALUE orig) /* cloned flag is refer at constant inline cache * see vm_get_const_key_cref() in vm_insnhelper.c */ - FL_SET(clone, RCLASS_CLONED); - FL_SET(orig , RCLASS_CLONED); + RCLASS_EXT(clone)->cloned = true; + RCLASS_EXT(orig)->cloned = true; if (!FL_TEST(CLASS_OF(clone), FL_SINGLETON)) { RBASIC_SET_CLASS(clone, rb_singleton_class_clone(orig)); |