summaryrefslogtreecommitdiffstats
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-06 06:44:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-06 06:44:10 +0000
commit77bf79a777eb07d29bf0dcb3d3824d4903236154 (patch)
tree41c6f162dc66c0fd1cef0bb4dc7c130131cf89c5 /vm_method.c
parentd39f8d06cba6ec537f85ecc1010424c90816667a (diff)
downloadruby-77bf79a777eb07d29bf0dcb3d3824d4903236154.tar.gz
ruby-77bf79a777eb07d29bf0dcb3d3824d4903236154.tar.xz
ruby-77bf79a777eb07d29bf0dcb3d3824d4903236154.zip
* vm_method.c (rb_method_entry_eq): deals with optimized method
properly. [ruby-core:24789] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index 407b5b725..4a94504ca 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -795,6 +795,8 @@ rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2)
case VM_METHOD_TYPE_NOTIMPLEMENTED:
case VM_METHOD_TYPE_UNDEF:
return 1;
+ case VM_METHOD_TYPE_OPTIMIZED:
+ return m1->body.optimize_type == m2->body.optimize_type;
default:
rb_bug("rb_add_method: unsupported method type (%d)\n", m1->type);
return 0;