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

ruby-changes:73913

From: Peter <ko1@a...>
Date: Fri, 7 Oct 2022 22:39:50 +0900 (JST)
Subject: [ruby-changes:73913] ad0def7f25 (master): Add more debugging output to test_thrashing_for_young_objects

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

From ad0def7f259f793ce02400a8d6144f86b3615ddd Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Fri, 7 Oct 2022 09:39:07 -0400
Subject: Add more debugging output to test_thrashing_for_young_objects

---
 test/ruby/test_gc.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index d69d6dd06a..7b0c0b85ab 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -410,6 +410,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L410
       1_000_000.times { Object.new }
 
       before_stats = GC.stat
+      before_stat_heap = GC.stat_heap
 
       1_000_000.times { Object.new }
 
@@ -418,9 +419,10 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L419
       GC.start(full_mark: false)
 
       after_stats = GC.stat
+      after_stat_heap = GC.stat_heap
 
       # Debugging output to for failures in trunk-repeat50@phosphorus-docker
-      debug_msg = "before_stats: #{before_stats}\nafter_stats: #{after_stats}"
+      debug_msg = "before_stats: #{before_stats}\nbefore_stat_heap: #{before_stat_heap}\nafter_stats: #{after_stats}\nafter_stat_heap: #{after_stat_heap}"
 
       # Should not be thrashing in page creation
       assert_equal before_stats[:heap_allocated_pages], after_stats[:heap_allocated_pages], debug_msg
-- 
cgit v1.2.1


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

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