mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
* 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:
parent
50102f21cd
commit
010de8e28c
2 changed files with 7 additions and 1 deletions
|
@ -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
3
eval.c
|
@ -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++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue