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

ruby-changes:33482

From: nobu <ko1@a...>
Date: Fri, 11 Apr 2014 10:49:10 +0900 (JST)
Subject: [ruby-changes:33482] nobu:r45561 (trunk): test_array.rb: do minor GC

nobu	2014-04-11 10:49:04 +0900 (Fri, 11 Apr 2014)

  New Revision: 45561

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45561

  Log:
    test_array.rb: do minor GC
    
    * test/ruby/test_array.rb (test_shared_marking): do minor GC to
      reduce WB-missed messages.

  Modified files:
    trunk/test/ruby/test_array.rb
Index: test/ruby/test_array.rb
===================================================================
--- test/ruby/test_array.rb	(revision 45560)
+++ test/ruby/test_array.rb	(revision 45561)
@@ -2431,8 +2431,10 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L2431
 
   def test_shared_marking
     reduce = proc do |s|
-      s.gsub(/(verify_internal_consistency_reachable_i:\sWB\smiss\s\S+\s\(T_ARRAY\)\s->\s)\S+\s\(proc\)\n
-             \K(?:\1\S+\s\(proc\)\n)*/x, "...\n")
+      s.gsub(/(verify_internal_consistency_reachable_i:\sWB\smiss\s\S+\s\(T_ARRAY\)\s->\s)\S+\s\((proc|T_NONE)\)\n
+             \K(?:\1\S+\s\(\2\)\n)*/x) do
+        "...(snip #{$&.count("\n")} lines)...\n"
+      end
     end
     assert_normal_exit(<<-EOS, '[Bug #9718]', timeout: 5, stdout_filter: reduce)
       queue = []
@@ -2440,6 +2442,7 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L2442
         100_000.times do
           queue << lambda{}
         end
+        GC.start(full_mark: false, immediate_sweep: true)
         GC.verify_internal_consistency
         queue.shift.call
       end

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

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