diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-09 14:50:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-09 14:50:24 +0000 |
commit | 67a98cd52f380857d3aea57cfb26dde38bdbaa97 (patch) | |
tree | 542c96b2cb95eff8d06c4f463f14e7a56c45080a /eval.c | |
parent | 8022abdc69b3707db7371ab21a2fdc40d578f614 (diff) |
* eval.c (rb_thread_start_0): prevent thread from GC.
[ruby-dev:21572]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -9385,6 +9385,7 @@ rb_thread_start_0(fn, arg, th) rb_thread_t th; { volatile rb_thread_t th_save = th; + volatile VALUE thread = th->thread; struct BLOCK *volatile saved_block = 0, *block; enum thread_status status; int state; @@ -9408,7 +9409,7 @@ rb_thread_start_0(fn, arg, th) #endif if (THREAD_SAVE_CONTEXT(curr_thread)) { - return th_save->thread; + return thread; } if (ruby_block) { /* should nail down higher blocks */ |