summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 16:52:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 16:52:38 +0000
commit745c057012345ab6f439670626d387fd2052901e (patch)
treeabb34ddee4f802dc2ca30b18dc857829a798040f /thread.c
parent231761cae83c1a815966d2822a79a66ef59c8f91 (diff)
downloadruby-745c057012345ab6f439670626d387fd2052901e.tar.gz
ruby-745c057012345ab6f439670626d387fd2052901e.tar.xz
ruby-745c057012345ab6f439670626d387fd2052901e.zip
* thread.c (thread_start_func_2): sets native thread key.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 749864aae..536652e3b 100644
--- a/thread.c
+++ b/thread.c
@@ -362,6 +362,8 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
rb_thread_t *main_th;
VALUE errinfo = Qnil;
+ ruby_thread_set_native(th);
+
th->machine_stack_start = stack_start;
#ifdef __ia64
th->machine_register_stack_start = register_stack_start;