summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-21 13:30:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-21 13:30:00 +0000
commit5c6ede680b84fc7fa9473cec58a28a18a8e27cb0 (patch)
treeee85506b3f0ec83df06494fa46200200e603117e /eval.c
parentf0434309688c439c1723261677f7a82a5e1b2e51 (diff)
* eval.c (rb_thread_raise): no need to save dead thread context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 800d001cce..1bbf65f109 100644
--- a/eval.c
+++ b/eval.c
@@ -9037,7 +9037,7 @@ rb_thread_raise(argc, argv, th)
rb_f_raise(argc, argv);
}
- if (THREAD_SAVE_CONTEXT(curr_thread)) {
+ if (!rb_thread_dead(curr_thread) && THREAD_SAVE_CONTEXT(curr_thread)) {
return th->thread;
}