ruby-changes:48398
From: ko1 <ko1@a...>
Date: Sat, 28 Oct 2017 20:04:12 +0900 (JST)
Subject: [ruby-changes:48398] ko1:r60512 (trunk): * vm.c (vm_define_method): don't use `th` any more.
ko1 2017-10-28 20:04:08 +0900 (Sat, 28 Oct 2017) New Revision: 60512 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60512 Log: * vm.c (vm_define_method): don't use `th` any more. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 60511) +++ vm.c (revision 60512) @@ -2589,7 +2589,7 @@ rb_thread_alloc(VALUE klass) https://github.com/ruby/ruby/blob/trunk/vm.c#L2589 } static void -vm_define_method(rb_thread_t *th, VALUE obj, ID id, VALUE iseqval, int is_singleton) +vm_define_method(VALUE obj, ID id, VALUE iseqval, int is_singleton) { VALUE klass; rb_method_visibility_t visi; @@ -2629,7 +2629,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/vm.c#L2629 m_core_define_method(VALUE self, VALUE sym, VALUE iseqval) { REWIND_CFP({ - vm_define_method(GET_THREAD(), Qnil, SYM2ID(sym), iseqval, FALSE); + vm_define_method(Qnil, SYM2ID(sym), iseqval, FALSE); }); return sym; } @@ -2638,7 +2638,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/vm.c#L2638 m_core_define_singleton_method(VALUE self, VALUE cbase, VALUE sym, VALUE iseqval) { REWIND_CFP({ - vm_define_method(GET_THREAD(), cbase, SYM2ID(sym), iseqval, TRUE); + vm_define_method(cbase, SYM2ID(sym), iseqval, TRUE); }); return sym; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/