diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-16 00:52:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-16 00:52:02 +0000 |
commit | d2c1ab806d521cb024089f5558dc82e134db68aa (patch) | |
tree | 0fd61b49f0f0253b2ac11ec1fa4ee3cbafc50b43 /eval.c | |
parent | 5b5ab17388a1cdab2000809645c2d83d245eebb4 (diff) |
* eval.c (rb_clear_cache_for_undef): clear entries for inherited
methods. [ruby-core:26074]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -384,7 +384,8 @@ rb_clear_cache_for_undef(klass, id) ent = cache; end = ent + CACHE_SIZE; while (ent < end) { if (ent->mid == id && - RCLASS(ent->origin)->m_tbl == RCLASS(klass)->m_tbl) { + (ent->klass == klass || + RCLASS(ent->origin)->m_tbl == RCLASS(klass)->m_tbl)) { ent->mid = 0; } ent++; |