* eval.c (rb_clear_cache_for_undef): clear entries for included

module.  fixed: [ruby-core:08180]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2006-07-10 00:30:40 +00:00
parent 50102f21cd
commit 010de8e28c
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Jul 10 09:29:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_clear_cache_for_undef): clear entries for included
module. fixed: [ruby-core:08180]
Sun Jul 9 18:06:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> Sun Jul 9 18:06:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (try_constant): fix for value 1 at cross compiling. * lib/mkmf.rb (try_constant): fix for value 1 at cross compiling.

3
eval.c
View file

@ -366,7 +366,8 @@ rb_clear_cache_for_undef(klass, id)
if (!ruby_running) return; if (!ruby_running) return;
ent = cache; end = ent + CACHE_SIZE; ent = cache; end = ent + CACHE_SIZE;
while (ent < end) { while (ent < end) {
if (ent->origin == klass && ent->mid == id) { if (ent->mid == id &&
RCLASS(ent->origin)->m_tbl == RCLASS(klass)->m_tbl) {
ent->mid = 0; ent->mid = 0;
} }
ent++; ent++;