diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-11-18 10:07:06 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-11-21 11:26:26 -0500 |
commit | 5f95228c76e6f6994eb4149217fe3e38f9ff8a27 (patch) | |
tree | 97753292d455b7e99d8116174676b10ce10559b8 /test/ruby/test_objectspace.rb | |
parent | b7a0ce32da751b437b976b032e73281b9a56b509 (diff) |
Add RVALUE_OVERHEAD and move ractor_belonging_id
This commit adds RVALUE_OVERHEAD for storing metadata at the end of the
slot. This commit moves the ractor_belonging_id in debug builds from the
flags to RVALUE_OVERHEAD which frees the 16 bits in the headers for
object shapes.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6763
Diffstat (limited to 'test/ruby/test_objectspace.rb')
-rw-r--r-- | test/ruby/test_objectspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb index 3c912fe300..a7cfb064a8 100644 --- a/test/ruby/test_objectspace.rb +++ b/test/ruby/test_objectspace.rb @@ -67,7 +67,7 @@ End def test_id2ref_invalid_symbol_id msg = /is not symbol id value/ - assert_raise_with_message(RangeError, msg) { ObjectSpace._id2ref(:a.object_id + 40) } + assert_raise_with_message(RangeError, msg) { ObjectSpace._id2ref(:a.object_id + GC::INTERNAL_CONSTANTS[:RVALUE_SIZE]) } end def test_count_objects |