diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2022-07-07 22:32:35 +0100 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-07-11 09:00:03 -0400 |
commit | 6423d32e3be76df346ea2051e1cbba220f36c9c0 (patch) | |
tree | 52e707e27724b68537de7a18e813f1c78aa0c4e6 | |
parent | a6dd859affc42b667279e513bb94fb75cfb133c1 (diff) |
Replace use of double_heap in tests with expand_heap
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6107
-rw-r--r-- | bootstraptest/test_yjit.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_gc_compact.rb | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index e80c50fd6e..7158486d50 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -806,7 +806,7 @@ assert_equal "good", %q{ foo begin - GC.verify_compaction_references(double_heap: true, toward: :empty) + GC.verify_compaction_references(expand_heap: true, toward: :empty) rescue NotImplementedError # in case compaction isn't supported end diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb index 802630b1a4..3927958e9c 100644 --- a/test/ruby/test_gc_compact.rb +++ b/test/ruby/test_gc_compact.rb @@ -166,7 +166,7 @@ class TestGCCompact < Test::Unit::TestCase hash = list_of_objects.hash GC.verify_compaction_references(toward: :empty) assert_equal hash, list_of_objects.hash - GC.verify_compaction_references(double_heap: false) + GC.verify_compaction_references(expand_heap: false) assert_equal hash, list_of_objects.hash end @@ -214,12 +214,12 @@ class TestGCCompact < Test::Unit::TestCase begin; STR_COUNT = 500 - GC.verify_compaction_references(double_heap: true, toward: :empty) + GC.verify_compaction_references(expand_heap: true, toward: :empty) str = "a" * GC::INTERNAL_CONSTANTS[:BASE_SLOT_SIZE] ary = STR_COUNT.times.map { "" << str } - stats = GC.verify_compaction_references(double_heap: true, toward: :empty) + stats = GC.verify_compaction_references(expand_heap: true, toward: :empty) assert_operator(stats[:moved_up][:T_STRING], :>=, STR_COUNT) assert(ary) # warning: assigned but unused variable - ary @@ -231,11 +231,11 @@ class TestGCCompact < Test::Unit::TestCase begin; STR_COUNT = 500 - GC.verify_compaction_references(double_heap: true, toward: :empty) + GC.verify_compaction_references(expand_heap: true, toward: :empty) ary = STR_COUNT.times.map { ("a" * GC::INTERNAL_CONSTANTS[:BASE_SLOT_SIZE]).squeeze! } - stats = GC.verify_compaction_references(double_heap: true, toward: :empty) + stats = GC.verify_compaction_references(expand_heap: true, toward: :empty) assert_operator(stats[:moved_down][:T_STRING], :>=, STR_COUNT) assert(ary) # warning: assigned but unused variable - ary |