aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-05 03:22:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-05 03:22:20 +0000
commit41bdcc2ea8b1c8237b5a92ec2845cb3d76e37c36 (patch)
tree62ae54c9e0f14e65f98d6a7b76314bb4d862e12e /vm.c
parentaab7b1235d23088e0beb2bbc4ee28fe804d648f4 (diff)
downloadruby-41bdcc2ea8b1c8237b5a92ec2845cb3d76e37c36.tar.gz
use TH_JUMP_TAG
* vm_eval.c (rb_eval_cmd, rb_catch_obj): use TH_JUMP_TAG with the same rb_thread_t used for TH_PUSH_TAG, instead of JUMP_TAG with the current thread global variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 94fbfdda48..edc3f20602 100644
--- a/vm.c
+++ b/vm.c
@@ -1047,7 +1047,7 @@ vm_invoke_proc(rb_thread_t *th, rb_proc_t *proc, VALUE self,
th->safe_level = stored_safe;
if (state) {
- JUMP_TAG(state);
+ TH_JUMP_TAG(th, state);
}
return val;
}
@@ -1859,7 +1859,7 @@ vm_exec(rb_thread_t *th)
vm_pop_frame(th);
th->errinfo = (VALUE)err;
TH_TMPPOP_TAG();
- JUMP_TAG(state);
+ TH_JUMP_TAG(th, state);
}
else {
th->cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->cfp);