1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_method.c (rb_clear_cache_by_class): just return if the class has

no method.  reported by Eric Wong.  [ruby-core:32689]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-11-02 22:37:08 +00:00
parent 3d2e701396
commit d295957957
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Wed Nov 3 07:33:57 2010 Tanaka Akira <akr@fsij.org>
* vm_method.c (rb_clear_cache_by_class): just return if the class has
no method. reported by Eric Wong. [ruby-core:32689]
Tue Nov 2 22:50:25 2010 Aaron Patterson <aaron@tenderlovemaking.com>
* ext/psych/lib/psych/visitors/visitor.rb (initialize): push accessor

View file

@ -85,6 +85,9 @@ rb_clear_cache_by_class(VALUE klass)
{
struct cache_entry *ent, *end;
if (RCLASS_M_TBL(klass)->num_entries == 0)
return;
rb_vm_change_state();
if (!ruby_running)