ruby-changes:40567
From: ko1 <ko1@a...>
Date: Wed, 18 Nov 2015 21:10:13 +0900 (JST)
Subject: [ruby-changes:40567] ko1:r52646 (trunk): * vm_method.c (prepare_callable_method_entry): use
ko1 2015-11-18 21:10:07 +0900 (Wed, 18 Nov 2015) New Revision: 52646 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52646 Log: * vm_method.c (prepare_callable_method_entry): use RCLASS_CALLABLE_M_TBL() instead of accessing a filed directly. Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 52645) +++ ChangeLog (revision 52646) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Nov 18 21:09:08 2015 Koichi Sasada <ko1@a...> + + * vm_method.c (prepare_callable_method_entry): use + RCLASS_CALLABLE_M_TBL() instead of accessing a filed directly. + Wed Nov 18 17:08:18 2015 Koichi Sasada <ko1@a...> * method.h: introduce the folliwing field and macros. Index: vm_method.c =================================================================== --- vm_method.c (revision 52645) +++ vm_method.c (revision 52646) @@ -465,7 +465,6 @@ rb_method_entry_make(VALUE klass, ID mid https://github.com/ruby/ruby/blob/trunk/vm_method.c#L465 rb_method_type_t type, rb_method_definition_t *def, ID original_id, void *opts) { rb_method_entry_t *me; - struct rb_id_table *mtbl; st_data_t data; int make_refined = 0; @@ -767,7 +766,7 @@ prepare_callable_method_entry(VALUE defi https://github.com/ruby/ruby/blob/trunk/vm_method.c#L766 VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS)); VM_ASSERT(me->defined_class == 0); - if ((mtbl = RCLASS_EXT(defined_class)->callable_m_tbl) == NULL) { + if ((mtbl = RCLASS_CALLABLE_M_TBL(defined_class)) == NULL) { mtbl = RCLASS_EXT(defined_class)->callable_m_tbl = rb_id_table_create(0); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/