[前][次][番号順一覧][スレッド一覧]

ruby-changes:72501

From: Matt <ko1@a...>
Date: Mon, 11 Jul 2022 22:00:29 +0900 (JST)
Subject: [ruby-changes:72501] 6423d32e3b (master): Replace use of double_heap in tests with expand_heap

https://git.ruby-lang.org/ruby.git/commit/?id=6423d32e3b

From 6423d32e3be76df346ea2051e1cbba220f36c9c0 Mon Sep 17 00:00:00 2001
From: Matt Valentine-House <matt@e...>
Date: Thu, 7 Jul 2022 22:32:35 +0100
Subject: Replace use of double_heap in tests with expand_heap

---
 bootstraptest/test_yjit.rb   |  2 +-
 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{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_yjit.rb#L806
   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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc_compact.rb#L166
     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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc_compact.rb#L214
     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 https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc_compact.rb#L231
     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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]