summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:39:02 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:39:02 +0000
commitf1ad90a5e360752e3f7ab0a7641ca416be9e0b03 (patch)
treef4695e1f6d943a4a6cd4541c57b25da843580a97 /vm_eval.c
parentf477851bb72e5b4c905c7b47253338c2ecb54032 (diff)
* 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
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 6930919..1fa2cec 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;