From 2f522b9cc6f3e184404040b12af4486520a73b26 Mon Sep 17 00:00:00 2001 From: charliesome Date: Wed, 4 Sep 2013 05:25:06 +0000 Subject: * class.c, compile.c, eval.c, gc.h, insns.def, internal.h, method.h, variable.c, vm.c, vm_core.c, vm_insnhelper.c, vm_insnhelper.h, vm_method.c: Implement class hierarchy method cache invalidation. [ruby-core:55053] [Feature #8426] [GH-387] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 2b0838a180..7d4ce1a21d 100644 --- a/eval.c +++ b/eval.c @@ -1262,7 +1262,7 @@ mod_using(VALUE self, VALUE module) } Check_Type(module, T_MODULE); rb_using_module(cref, module); - rb_clear_cache(); + rb_clear_cache_by_class(rb_cObject); return self; } @@ -1398,7 +1398,7 @@ top_using(VALUE self, VALUE module) } Check_Type(module, T_MODULE); rb_using_module(cref, module); - rb_clear_cache(); + rb_clear_cache_by_class(rb_cObject); return self; } -- cgit v1.2.3