summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-10-07 09:39:07 -0400
committerPeter Zhu <peter@peterzhu.ca>2022-10-07 09:39:07 -0400
commitad0def7f259f793ce02400a8d6144f86b3615ddd (patch)
treee04441fb5d3bc40afcc6d698c55c6b5b851c91eb
parent24f3e397e957a6747a2067edd831bc7920e204ec (diff)
Add more debugging output to test_thrashing_for_young_objects
-rw-r--r--test/ruby/test_gc.rb4
1 files changed, 3 insertions, 1 deletions
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
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
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