From f1ad90a5e360752e3f7ab0a7641ca416be9e0b03 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 7 Nov 2017 05:39:02 +0000 Subject: * vm_eval.c (rescue_funcall_args): th->ec git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index 69309194ec..1fa2cec432 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -297,10 +297,10 @@ rb_call0(rb_execution_context_t *ec, } struct rescue_funcall_args { - rb_thread_t *th; VALUE defined_class; VALUE recv; ID mid; + rb_execution_context_t *ec; const rb_method_entry_t *me; unsigned int respond: 1; unsigned int respond_to_missing: 1; @@ -311,7 +311,7 @@ struct rescue_funcall_args { static VALUE check_funcall_exec(struct rescue_funcall_args *args) { - return call_method_entry(args->th->ec, args->defined_class, + return call_method_entry(args->ec, args->defined_class, args->recv, idMethodMissing, args->me, args->argc, args->argv); } @@ -372,7 +372,7 @@ check_funcall_missing(rb_execution_context_t *ec, VALUE klass, VALUE recv, ID mi new_args[0] = ID2SYM(mid); MEMCPY(new_args+1, argv, VALUE, argc); ec->method_missing_reason = MISSING_NOENTRY; - args.th = rb_ec_thread_ptr(ec); + args.ec = ec; args.recv = recv; args.me = me; args.mid = mid; -- cgit v1.2.3