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.
This commit is contained in:
Peter Zhu 2023-08-14 11:24:50 -04:00
parent 8c5b9ebf71
commit 0f94e65359
3 changed files with 9 additions and 0 deletions

View file

@ -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)