From c9d3538335cc2a3dc7305ebae63b99fcaa78624a Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 28 Oct 2017 12:23:51 +0000 Subject: `th` -> `ec` for method management functions. * vm_eval.c: `th` -> `ec` for the following functions: * check_funcall_respond_to * check_funcall_callable * check_funcall_missing * rb_method_call_status * vm_method.c: ditto. * call_method_entry * basic_obj_respond_to_missing * basic_obj_respond_to * vm_respond_to * vm_eval.c (stack_check): accepts `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index 3e2420ee0b..95949765b2 100644 --- a/vm.c +++ b/vm.c @@ -1013,7 +1013,6 @@ invoke_iseq_block_from_c(rb_execution_context_t *ec, const struct rb_captured_bl VALUE self, int argc, const VALUE *argv, VALUE passed_block_handler, const rb_cref_t *cref, int is_lambda) { - rb_thread_t *th = rb_ec_thread_ptr(ec); const rb_iseq_t *iseq = rb_iseq_check(captured->code.iseq); int i, opt_pc; VALUE type = VM_FRAME_MAGIC_BLOCK | (is_lambda ? VM_FRAME_FLAG_LAMBDA : 0); @@ -1021,7 +1020,7 @@ invoke_iseq_block_from_c(rb_execution_context_t *ec, const struct rb_captured_bl VALUE *sp = cfp->sp; const rb_callable_method_entry_t *me = ec->passed_bmethod_me; ec->passed_bmethod_me = NULL; - stack_check(th); + stack_check(ec); CHECK_VM_STACK_OVERFLOW(cfp, argc); cfp->sp = sp + argc; -- cgit v1.2.3