зеркало из https://github.com/github/ruby.git
* vm_method.c (rb_method_definition_reset): need a WB for
VM_METHOD_TYPE_ATTRSET. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9a2638717c
Коммит
988267d462
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 25 06:40:46 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* 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@atdot.net>
|
||||
|
||||
* gc.c (RGENGC_OBJ_INFO, obj_info): add a macro to enable/disable
|
||||
|
|
10
vm_method.c
10
vm_method.c
|
@ -304,6 +304,7 @@ rb_method_definition_reset(const rb_method_entry_t *me, rb_method_definition_t *
|
|||
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_method_entry_t *me, rb_method_definition_t *
|
|||
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче