aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-11-02 09:49:23 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-11-02 13:42:11 -0400
commit38ba040d8bda65321daad8d5bfa8956b5072e826 (patch)
tree5c1884f4d99ecd2b0326eac0e8f843ecb917a217 /test
parentad4f973ecd0a3481ff1abaa972d457e9f5b5fb4e (diff)
downloadruby-38ba040d8bda65321daad8d5bfa8956b5072e826.tar.gz
Make every initial size pool shape a root shape
This commit makes every initial size pool shape a root shape and assigns it a capacity of 0.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_shapes.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/ruby/test_shapes.rb b/test/ruby/test_shapes.rb
index b627b58281..09a99c4855 100644
--- a/test/ruby/test_shapes.rb
+++ b/test/ruby/test_shapes.rb
@@ -691,14 +691,6 @@ class TestShapes < Test::Unit::TestCase
assert_shape_equal(RubyVM::Shape.root_shape, RubyVM::Shape.of([]))
end
- def test_hash_has_correct_pool_shape
- omit "SHAPE_IN_BASIC_FLAGS == 0" unless RbConfig::SIZEOF["uint64_t"] <= RbConfig::SIZEOF["void*"]
-
- # All hashes are now allocated their own ar_table, so start in a
- # larger pool, and have already transitioned once.
- assert_shape_equal(RubyVM::Shape.root_shape, RubyVM::Shape.of({}).parent)
- end
-
def test_true_has_special_const_shape_id
assert_equal(RubyVM::Shape::SPECIAL_CONST_SHAPE_ID, RubyVM::Shape.of(true).id)
end