From a8868b3fe56384d9f57ff5803bd843b26afa1584 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 26 Oct 2017 23:33:59 +0000 Subject: rb_vm_bh_to_procval() accepts `ec` instead of `th`. * vm_insnhelper.c (rb_vm_bh_to_procval): accepts `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- proc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index 60662979b3..83691a49ec 100644 --- a/proc.c +++ b/proc.c @@ -384,8 +384,6 @@ bind_eval(int argc, VALUE *argv, VALUE bindval) return rb_f_eval(argc+1, args, Qnil /* self will be searched in eval */); } -VALUE rb_vm_bh_to_procval(rb_thread_t *th, VALUE block_handler); - static const VALUE * get_local_variable_ptr(const rb_env_t **envp, ID lid) { @@ -404,7 +402,7 @@ get_local_variable_ptr(const rb_env_t **envp, ID lid) (unsigned int)iseq->body->param.block_start == i) { const VALUE *ep = env->ep; if (!VM_ENV_FLAGS(ep, VM_FRAME_FLAG_MODIFIED_BLOCK_PARAM)) { - RB_OBJ_WRITE(env, &env->env[i], rb_vm_bh_to_procval(GET_THREAD(), VM_ENV_BLOCK_HANDLER(ep))); + RB_OBJ_WRITE(env, &env->env[i], rb_vm_bh_to_procval(GET_EC(), VM_ENV_BLOCK_HANDLER(ep))); VM_ENV_FLAGS_SET(ep, VM_FRAME_FLAG_MODIFIED_BLOCK_PARAM); } } -- cgit v1.2.3