summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-08-14 11:24:50 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-08-15 15:18:05 -0400
commit0f94e653597dc2ae21ae39ac4c85266f3bb36ab6 (patch)
tree2adacaf075c1570a43d5150c32c206a5abd27a3a /test/ruby
parent8c5b9ebf7144af73cf52209b73b849c078133dff (diff)
Add stat force_incremental_marking_finish_count
This commit adds key force_incremental_marking_finish_count to GC.stat_heap. This statistic returns the number of times the size pool has forced incremental marking to finish due to running out of slots.
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 0cf57cb088..aabdfc0cf8 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -163,6 +163,7 @@ class TestGc < Test::Unit::TestCase
assert_operator stat_heap[:total_allocated_pages], :>=, 0
assert_operator stat_heap[:total_freed_pages], :>=, 0
assert_operator stat_heap[:force_major_gc_count], :>=, 0
+ assert_operator stat_heap[:force_incremental_marking_finish_count], :>=, 0
end
GC.stat_heap(0, stat_heap)