summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-24 21:44:58 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-24 21:44:58 (GMT)
commit988267d462efdb29c1d7c716cbc720e4bbd69bdc (patch)
tree372d84a8ac8846345f8dd3b123edd776bcd7f614 /vm_method.c
parent9a2638717c929a29247507a030f33777b7d11e98 (diff)
* 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
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c
index 735386e..563ee6a 100644
--- a/vm_method.c
+++ b/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;