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

ruby-changes:24488

From: nagachika <ko1@a...>
Date: Thu, 26 Jul 2012 01:40:16 +0900 (JST)
Subject: [ruby-changes:24488] nagachika:r36539 (trunk): * thread.c (thread_create_core, Init_Thread): hide

nagachika	2012-07-26 01:40:04 +0900 (Thu, 26 Jul 2012)

  New Revision: 36539

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

  Log:
    * thread.c (thread_create_core, Init_Thread): hide
      th->async_errinfo_queue and th->async_errinfo_mask_stack from
      ObjectSpace.each_object.

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36538)
+++ ChangeLog	(revision 36539)
@@ -1,3 +1,9 @@
+Thu Jul 26 00:42:23 2012  CHIKANAGA Tomoyuki  <nagachika@r...>
+
+	* thread.c (thread_create_core, Init_Thread): hide
+	  th->async_errinfo_queue and th->async_errinfo_mask_stack from
+	  ObjectSpace.each_object.
+
 Wed Jul 25 17:41:05 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* complex.c, rational.c: compatible marshal loader for compatibilities
Index: thread.c
===================================================================
--- thread.c	(revision 36538)
+++ thread.c	(revision 36539)
@@ -562,7 +562,7 @@
     th->priority = current_th->priority;
     th->thgroup = current_th->thgroup;
 
-    th->async_errinfo_queue = rb_ary_new();
+    th->async_errinfo_queue = rb_ary_tmp_new(0);
     th->async_errinfo_queue_checked = 0;
     th->async_errinfo_mask_stack = rb_ary_dup(current_th->async_errinfo_mask_stack);
 
@@ -5123,9 +5123,10 @@
 	    gvl_acquire(th->vm, th);
 	    native_mutex_initialize(&th->interrupt_lock);
 
-	    th->async_errinfo_queue = rb_ary_new();
+	    th->async_errinfo_queue = rb_ary_tmp_new(0);
 	    th->async_errinfo_queue_checked = 0;
-	    th->async_errinfo_mask_stack = rb_ary_new();
+	    th->async_errinfo_mask_stack = rb_ary_tmp_new(0);
+	    RBASIC(th->async_errinfo_mask_stack)->klass = 0;
 	}
     }
 

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

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