From dcc004cba9ebb784bad46bdb35f92edcb113a115 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 24 Feb 2015 02:05:28 +0000 Subject: 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 --- eval_jump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval_jump.c') diff --git a/eval_jump.c b/eval_jump.c index 5443ed224e..88fc5a2f35 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; -- cgit v1.2.3