summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-02-03 11:45:37 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-02-03 15:06:55 -0500
commita9221406aa3177f98be507ff5474f2f7d78b481a (patch)
tree9b8e828a1d10ee33dab06282e8794c79c67665ee /test/ruby
parent424374d3302d8d25165007e7afedf14b1a76d23e (diff)
downloadruby-a9221406aa3177f98be507ff5474f2f7d78b481a.tar.gz
Move total_allocated_pages to size pool
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index fc49659c27..e19df8f2f9 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -158,6 +158,7 @@ class TestGc < Test::Unit::TestCase
assert_operator stat_heap[:heap_eden_slots], :>=, 0
assert_operator stat_heap[:heap_tomb_pages], :<=, stat[:heap_tomb_pages]
assert_operator stat_heap[:heap_tomb_slots], :>=, 0
+ assert_operator stat_heap[:total_allocated_pages], :>=, 0
end
GC.stat_heap(0, stat_heap)
@@ -203,6 +204,7 @@ class TestGc < Test::Unit::TestCase
assert_equal stat[:heap_eden_pages], stat_heap_sum[:heap_eden_pages]
assert_equal stat[:heap_tomb_pages], stat_heap_sum[:heap_tomb_pages]
assert_equal stat[:heap_available_slots], stat_heap_sum[:heap_eden_slots] + stat_heap_sum[:heap_tomb_slots]
+ assert_equal stat[:total_allocated_pages], stat_heap_sum[:total_allocated_pages]
end
def test_latest_gc_info