mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Run major GC to make sure the minor GC next time.
`GC.start(full_mark: false)` can run full GC because of last GC status. Just after major GC, the possibility to run major GC next time is too small (not a zero, but too small possibility).
This commit is contained in:
parent
cf52f37cae
commit
6e271e4cbb
1 changed files with 2 additions and 1 deletions
|
@ -56,8 +56,9 @@ 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
|
||||
GC.start(full_mark: false)
|
||||
assert_nil GC.latest_gc_info(:major_by)
|
||||
assert_nil GC.latest_gc_info(:major_by, msg)
|
||||
|
||||
GC.start(full_mark: true)
|
||||
assert_not_nil GC.latest_gc_info(:major_by)
|
||||
|
|
Loading…
Add table
Reference in a new issue