summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-09 07:56:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-09 07:56:02 +0000
commita71ee2ce41e7f698cdc01d59816de6fe24775850 (patch)
tree7cc251829d53cd760836696526ce325f20787276 /vm_method.c
parentd968e9ecfa3b5b8e7ef801031571cae69de39209 (diff)
downloadruby-a71ee2ce41e7f698cdc01d59816de6fe24775850.tar.gz
vm_method.c: clear cache after refine method
* vm_method.c (rb_add_refined_method_entry): clear cache in the refined class since refining a method entry is modifying the class. [ruby-core:57079] [Bug #8880] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_method.c b/vm_method.c
index 41064ad9b4..35c112aea1 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -190,6 +190,7 @@ rb_add_refined_method_entry(VALUE refined_class, ID mid)
if (me) {
make_method_entry_refined(me);
+ rb_clear_cache_by_class(refined_class);
}
else {
rb_add_method(refined_class, mid, VM_METHOD_TYPE_REFINED, 0,