ruby-changes:60280
From: Koichi <ko1@a...>
Date: Wed, 4 Mar 2020 11:35:45 +0900 (JST)
Subject: [ruby-changes:60280] 02705b27be (master): Run major GC to make sure the minor GC reason
https://git.ruby-lang.org/ruby.git/commit/?id=02705b27be From 02705b27be207fce57bd0253251f81108c7ed57b Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Wed, 4 Mar 2020 11:33:55 +0900 Subject: Run major GC to make sure the minor GC reason GC.latest_gc_info[:major_by] can return `oldmalloc` because of last GC status. diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index 401af99..a2ccc63 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -146,6 +146,7 @@ class TestGc < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_gc.rb#L146 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] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/