summaryrefslogtreecommitdiff
path: root/test/objspace
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-11-18 10:07:06 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-11-21 11:26:26 -0500
commit5f95228c76e6f6994eb4149217fe3e38f9ff8a27 (patch)
tree97753292d455b7e99d8116174676b10ce10559b8 /test/objspace
parentb7a0ce32da751b437b976b032e73281b9a56b509 (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/objspace')
-rw-r--r--test/objspace/test_objspace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 2366ec3b61..1eded6a439 100644
--- a/test/objspace/test_objspace.rb
+++ b/test/objspace/test_objspace.rb
@@ -480,8 +480,8 @@ class TestObjSpace < Test::Unit::TestCase
obj = JSON.parse(l)
next if obj["type"] == "ROOT"
- assert(obj["slot_size"] != nil)
- assert(obj["slot_size"] % GC::INTERNAL_CONSTANTS[:BASE_SLOT_SIZE] == 0)
+ assert_not_nil obj["slot_size"]
+ assert_equal 0, obj["slot_size"] % GC::INTERNAL_CONSTANTS[:RVALUE_SIZE]
}
end
end