mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Implement object shapes for T_CLASS and T_MODULE (#6637)
* Avoid RCLASS_IV_TBL in marshal.c * Avoid RCLASS_IV_TBL for class names * Avoid RCLASS_IV_TBL for autoload * Avoid RCLASS_IV_TBL for class variables * Avoid copying RCLASS_IV_TBL onto ICLASSes * Use object shapes for Class and Module IVs
This commit is contained in:
parent
2b39640b0b
commit
02f1554224
Notes:
git
2022-10-31 21:06:02 +00:00
Merged-By: jhawthorn <john@hawthorn.email>
10 changed files with 266 additions and 203 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 || \
|
||||
(RCLASS_IV_TBL(klass) && RCLASS_IV_TBL(klass)->num_entries > 1))
|
||||
rb_ivar_count(klass) > 1)
|
||||
|
||||
static void
|
||||
w_extended(VALUE klass, struct dump_arg *arg, int check)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue