1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Run major GC three times to make sure the minor GC reason

Same as 02705b27be

http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/2955433
```
  1)
TestGc#test_start_full_mark [/tmp/ruby/v3/src/trunk-random1/test/ruby/test_gc.rb:61]:
Expected :oldmalloc to be nil.
```
This commit is contained in:
Yusuke Endoh 2020-05-22 11:09:08 +09:00
parent 79d9528ddc
commit 74cd607ca0

View file

@ -56,7 +56,7 @@ class TestGc < Test::Unit::TestCase
return unless use_rgengc?
skip 'stress' if GC.stress
GC.start # full mark and next time it should be minor mark
3.times { GC.start } # full mark and next time it should be minor mark
GC.start(full_mark: false)
assert_nil GC.latest_gc_info(:major_by)