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

ruby-changes:34030

From: akr <ko1@a...>
Date: Sun, 25 May 2014 16:58:09 +0900 (JST)
Subject: [ruby-changes:34030] akr:r46111 (trunk): * test/lib/minitest/unit.rb: Use Thread.list instead of

akr	2014-05-25 16:58:02 +0900 (Sun, 25 May 2014)

  New Revision: 46111

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

  Log:
    * test/lib/minitest/unit.rb: Use Thread.list instead of
      ObjectSpace.each_object(Thread).

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/minitest/unit.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46110)
+++ ChangeLog	(revision 46111)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May 25 16:54:06 2014  Tanaka Akira  <akr@f...>
+
+	* test/lib/minitest/unit.rb: Use Thread.list instead of
+	  ObjectSpace.each_object(Thread).
+
 Sun May 25 15:53:54 2014  Tanaka Akira  <akr@f...>
 
 	* lib/rinda/ring.rb (Rinda::RingServer#shutdown): Join the killed
Index: test/lib/minitest/unit.rb
===================================================================
--- test/lib/minitest/unit.rb	(revision 46110)
+++ test/lib/minitest/unit.rb	(revision 46111)
@@ -947,7 +947,7 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/test/lib/minitest/unit.rb#L947
     end
 
     def live_thread_and_tempfile
-      live_threads = ObjectSpace.each_object(Thread).find_all {|t|
+      live_threads = Thread.list.find_all {|t|
         t != Thread.current && t.alive?
       }
       if defined? Tempfile

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

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