From 84f94652b019d8024fde8e8208fc4fc7c225870e Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 5 May 2016 03:22:20 +0000 Subject: 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 --- thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index ac31da5299..884bb01298 100644 --- a/thread.c +++ b/thread.c @@ -1422,7 +1422,7 @@ rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd) th->waiting_fd = -1; if (state) { - JUMP_TAG(state); + TH_JUMP_TAG(th, state); } /* TODO: check func() */ RUBY_VM_CHECK_INTS_BLOCKING(th); @@ -1853,7 +1853,7 @@ rb_thread_s_handle_interrupt(VALUE self, VALUE mask_arg) RUBY_VM_CHECK_INTS(th); if (state) { - JUMP_TAG(state); + TH_JUMP_TAG(th, state); } return r; -- cgit v1.2.3