summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:56:30 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:56:30 +0000
commit9c50139793fc5b8b937d9bc1864018ed9eeebdbf (patch)
treea6c24194e03d0b5ce385ff24bf5328cce7cdf218
parent5d95428bbe2c10451a6a7a91a8d04f68d06f3a2a (diff)
merges r20976 from trunk into ruby_1_9_1.
* thread.c (thread_start_func_2): sets native thread key. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--thread.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 06e66f809..0c0972895 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Dec 25 01:52:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): sets native thread key.
+
Thu Dec 25 01:09:23 2008 TAKAO Kouji <kouji@takao7.net>
* test/readline/test_readline_history.rb: check the encoding that
diff --git a/thread.c b/thread.c
index 31138611e..74242ea11 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;