ruby-changes:38938
From: ko1 <ko1@a...>
Date: Thu, 25 Jun 2015 06:47:34 +0900 (JST)
Subject: [ruby-changes:38938] ko1:r51019 (trunk): * vm_method.c (rb_method_definition_reset): need a WB for
ko1 2015-06-25 06:44:58 +0900 (Thu, 25 Jun 2015) New Revision: 51019 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51019 Log: * vm_method.c (rb_method_definition_reset): need a WB for VM_METHOD_TYPE_ATTRSET. Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 51018) +++ ChangeLog (revision 51019) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Jun 25 06:40:46 2015 Koichi Sasada <ko1@a...> + + * vm_method.c (rb_method_definition_reset): need a WB for + VM_METHOD_TYPE_ATTRSET. + Thu Jun 25 03:33:21 2015 Koichi Sasada <ko1@a...> * gc.c (RGENGC_OBJ_INFO, obj_info): add a macro to enable/disable Index: vm_method.c =================================================================== --- vm_method.c (revision 51018) +++ vm_method.c (revision 51019) @@ -304,6 +304,7 @@ rb_method_definition_reset(const rb_meth https://github.com/ruby/ruby/blob/trunk/vm_method.c#L304 RB_OBJ_WRITTEN(me, Qundef, def->body.iseq.iseqptr->self); RB_OBJ_WRITTEN(me, Qundef, def->body.iseq.cref); break; + case VM_METHOD_TYPE_ATTRSET: case VM_METHOD_TYPE_IVAR: RB_OBJ_WRITTEN(me, Qundef, def->body.attr.location); break; @@ -316,8 +317,13 @@ rb_method_definition_reset(const rb_meth https://github.com/ruby/ruby/blob/trunk/vm_method.c#L317 case VM_METHOD_TYPE_ALIAS: RB_OBJ_WRITTEN(me, Qundef, def->body.alias.original_me); break; - default:; - /* ignore */ + case VM_METHOD_TYPE_CFUNC: + case VM_METHOD_TYPE_ZSUPER: + case VM_METHOD_TYPE_MISSING: + case VM_METHOD_TYPE_OPTIMIZED: + case VM_METHOD_TYPE_UNDEF: + case VM_METHOD_TYPE_NOTIMPLEMENTED: + break; } *(rb_method_definition_t **)&me->def = def; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/