summaryrefslogtreecommitdiff
path: root/eval_jump.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-24 02:05:28 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-24 02:05:28 (GMT)
commitdcc004cba9ebb784bad46bdb35f92edcb113a115 (patch)
tree6056ea7544e14e07d1c75492245e97dd8dfd1aa8 /eval_jump.c
parentedad4f3bc64aafb1c12e2a681c17a504ca5e6d31 (diff)
eval.c: use the given thread
* eval.c (setup_exception): use the given thread instead of implicit current thread. * load.c (rb_load_internal0): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_jump.c')
-rw-r--r--eval_jump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval_jump.c b/eval_jump.c
index 5443ed2..88fc5a2 100644
--- a/eval_jump.c
+++ b/eval_jump.c
@@ -116,7 +116,7 @@ rb_exec_end_proc(void)
rb_thread_t *th = GET_THREAD();
volatile VALUE errinfo = th->errinfo;
- PUSH_TAG();
+ TH_PUSH_TAG(th);
if ((status = EXEC_TAG()) == 0) {
again:
exec_end_procs_chain(&ephemeral_end_procs);
@@ -130,7 +130,7 @@ rb_exec_end_proc(void)
TH_REPUSH_TAG();
goto again;
}
- POP_TAG();
+ TH_POP_TAG();
rb_set_safe_level_force(safe);
th->errinfo = errinfo;