diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2022-11-08 14:09:43 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-11-10 10:11:34 -0500 |
commit | c726c48a3dacd9ca1cb0d96fee98890cb74b37d3 (patch) | |
tree | f2bbd9f9797ee63e8666fffd18c47e04571b7a6f /vm_core.h | |
parent | 5246f4027ec574e77809845e1b1f7822cc2a5cef (diff) |
Remove numiv from RObject
Since object shapes store the capacity of an object, we no longer
need the numiv field on RObjects. This gives us one extra slot which
we can use to give embedded objects one more instance variable (for a
total of 3 ivs). This commit removes the concept of numiv from RObject.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6699
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -253,7 +253,7 @@ struct iseq_inline_constant_cache_entry { }; STATIC_ASSERT(sizeof_iseq_inline_constant_cache_entry, (offsetof(struct iseq_inline_constant_cache_entry, ic_cref) + - sizeof(const rb_cref_t *)) <= sizeof(struct RObject)); + sizeof(const rb_cref_t *)) <= RVALUE_SIZE); struct iseq_inline_constant_cache { struct iseq_inline_constant_cache_entry *entry; |