ruby-changes:39583
From: nobu <ko1@a...>
Date: Sat, 22 Aug 2015 14:44:14 +0900 (JST)
Subject: [ruby-changes:39583] nobu:r51664 (trunk): vm_eval.c: pass thread too
nobu 2015-08-22 14:43:59 +0900 (Sat, 22 Aug 2015) New Revision: 51664 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51664 Log: vm_eval.c: pass thread too * vm_eval.c (check_funcall_missing): pass same thread to call. Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 51663) +++ vm_eval.c (revision 51664) @@ -347,6 +347,7 @@ rb_call0(VALUE recv, ID mid, int argc, c https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L347 } struct rescue_funcall_args { + rb_thread_t *th; VALUE defined_class; VALUE recv; ID mid; @@ -358,7 +359,7 @@ struct rescue_funcall_args { https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L359 static VALUE check_funcall_exec(struct rescue_funcall_args *args) { - return call_method_entry(GET_THREAD(), args->defined_class, + return call_method_entry(args->th, args->defined_class, args->recv, idMethodMissing, args->me, args->argc, args->argv); } @@ -397,6 +398,7 @@ check_funcall_missing(rb_thread_t *th, V https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L398 new_args[0] = ID2SYM(mid); MEMCPY(new_args+1, argv, VALUE, argc); th->method_missing_reason = MISSING_NOENTRY; + args.th = th; args.recv = recv; args.me = me; args.mid = mid; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/