diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-02-03 11:51:20 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2022-02-03 15:06:55 -0500 |
commit | af321ea7273e43d65ea7f5743f56e10dcd4e98b0 (patch) | |
tree | 531e3e2e88a5f34910a9ad782ad5381d909e1ee2 /test/ruby/test_gc.rb | |
parent | a9221406aa3177f98be507ff5474f2f7d78b481a (diff) |
Move total_freed_pages to size pool
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5523
Diffstat (limited to 'test/ruby/test_gc.rb')
-rw-r--r-- | test/ruby/test_gc.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index e19df8f2f9..b081e9fa78 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -159,6 +159,7 @@ class TestGc < Test::Unit::TestCase 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 + assert_operator stat_heap[:total_freed_pages], :>=, 0 end GC.stat_heap(0, stat_heap) @@ -205,6 +206,7 @@ class TestGc < Test::Unit::TestCase 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] + assert_equal stat[:total_freed_pages], stat_heap_sum[:total_freed_pages] end def test_latest_gc_info |