* 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:
parent
3d2e701396
commit
d295957957
@ -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>
|
Tue Nov 2 22:50:25 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
* ext/psych/lib/psych/visitors/visitor.rb (initialize): push accessor
|
* ext/psych/lib/psych/visitors/visitor.rb (initialize): push accessor
|
||||||
|
@ -85,6 +85,9 @@ rb_clear_cache_by_class(VALUE klass)
|
|||||||
{
|
{
|
||||||
struct cache_entry *ent, *end;
|
struct cache_entry *ent, *end;
|
||||||
|
|
||||||
|
if (RCLASS_M_TBL(klass)->num_entries == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
rb_vm_change_state();
|
rb_vm_change_state();
|
||||||
|
|
||||||
if (!ruby_running)
|
if (!ruby_running)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user