summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-25 16:40:04 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-25 16:40:04 +0000
commitea637ebaa4491d50578002a9a7d26cf4f55c7a58 (patch)
tree9f3146004e00e9e8656466240ff5acfa3874c9ff /thread.c
parent003c45f9cd570335b7360241724b6967a8ab014a (diff)
* thread.c (thread_create_core, Init_Thread): hide
th->async_errinfo_queue and th->async_errinfo_mask_stack from ObjectSpace.each_object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 1cc13a87dd..13c8942368 100644
--- a/thread.c
+++ b/thread.c
@@ -562,7 +562,7 @@ thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS))
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 @@ Init_Thread(void)
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;
}
}