mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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
This commit is contained in:
parent
d968e9ecfa
commit
a71ee2ce41
3 changed files with 30 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue