mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Move attached_object
into rb_classext_struct
Given that signleton classes don't have an allocator, we can re-use these bytes to store the attached object in `rb_classext_struct` without making it larger.
This commit is contained in:
parent
1df75d6586
commit
1a4b4cd7f8
Notes:
git
2023-02-16 07:15:11 +00:00
9 changed files with 152 additions and 121 deletions
|
@ -523,7 +523,7 @@ hash_each(VALUE key, VALUE value, VALUE v)
|
|||
|
||||
#define SINGLETON_DUMP_UNABLE_P(klass) \
|
||||
(rb_id_table_size(RCLASS_M_TBL(klass)) > 0 || \
|
||||
rb_ivar_count(klass) > 1)
|
||||
rb_ivar_count(klass) > 0)
|
||||
|
||||
static void
|
||||
w_extended(VALUE klass, struct dump_arg *arg, int check)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue