summaryrefslogtreecommitdiff
path: root/test/ruby/test_gc.rb
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-03-04 11:33:55 +0900
committerKoichi Sasada <ko1@atdot.net>2020-03-04 11:33:55 +0900
commit02705b27be207fce57bd0253251f81108c7ed57b (patch)
tree995044f17a0fc7ba271701f181fbc3d43b44df8a /test/ruby/test_gc.rb
parent6e271e4cbbe6a8bc4d4f75dc553ce054eae7af00 (diff)
Run major GC to make sure the minor GC reason
GC.latest_gc_info[:major_by] can return `oldmalloc` because of last GC status.
Diffstat (limited to 'test/ruby/test_gc.rb')
-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 401af99f3b..a2ccc63218 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -146,6 +146,7 @@ class TestGc < Test::Unit::TestCase
eom
GC.start
+ GC.start
assert_equal :force, GC.latest_gc_info[:major_by] if use_rgengc?
assert_equal :method, GC.latest_gc_info[:gc_by]
assert_equal true, GC.latest_gc_info[:immediate_sweep]