[前][次][番号順一覧][スレッド一覧]

ruby-changes:48571

From: ko1 <ko1@a...>
Date: Tue, 7 Nov 2017 14:39:09 +0900 (JST)
Subject: [ruby-changes:48571] ko1:r60686 (trunk): * vm_eval.c (rescue_funcall_args): th->ec

ko1	2017-11-07 14:39:02 +0900 (Tue, 07 Nov 2017)

  New Revision: 60686

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60686

  Log:
    * vm_eval.c (rescue_funcall_args): th->ec

  Modified files:
    trunk/vm_eval.c
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 60685)
+++ vm_eval.c	(revision 60686)
@@ -297,10 +297,10 @@ rb_call0(rb_execution_context_t *ec, https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L297
 }
 
 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 { https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L311
 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_conte https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L372
 	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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]