diff options
-rw-r--r-- | test/ruby/test_gc.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index a1e782daa9..d2f1e21e33 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -413,6 +413,10 @@ class TestGc < Test::Unit::TestCase 1_000_000.times { Object.new } + # Previous loop may have caused GC to be in an intermediate state, + # running a minor GC here will guarantee that GC will be complete + GC.start(full_mark: false) + after_stats = GC.stat # Should not be thrashing in page creation |