[前][次][番号順一覧][スレッド一覧]

ruby-changes:61314

From: Yusuke <ko1@a...>
Date: Fri, 22 May 2020 11:12:58 +0900 (JST)
Subject: [ruby-changes:61314] 74cd607ca0 (master): Run major GC three times to make sure the minor GC reason

https://git.ruby-lang.org/ruby.git/commit/?id=74cd607ca0

From 74cd607ca049cdcd7a42f2d42398ef8b4d7d71fc Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Fri, 22 May 2020 11:09:08 +0900
Subject: Run major GC three times to make sure the minor GC reason

Same as 02705b27be207fce57bd0253251f81108c7ed57b

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.
```

diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 53777c6..f18cd60 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -56,7 +56,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L56
     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)
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]