From 38ba040d8bda65321daad8d5bfa8956b5072e826 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 2 Nov 2023 09:49:23 -0400 Subject: 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. --- test/ruby/test_shapes.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'test/ruby') 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 -- cgit v1.2.3