summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 00:29:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-07-10 00:29:43 +0000
commitbc36543705564bd86e61022ce15c6fc485b6eea6 (patch)
tree659e6fc1178db16f5bb2e0b139821c2def30939d
parent937b2747257f0919a1560b8b7e3ebe70ec620c6f (diff)
downloadruby-bc36543705564bd86e61022ce15c6fc485b6eea6.tar.gz
ruby-bc36543705564bd86e61022ce15c6fc485b6eea6.tar.xz
ruby-bc36543705564bd86e61022ce15c6fc485b6eea6.zip
* eval.c (rb_clear_cache_for_remove): clear entries for included
module. fixed: [ruby-core:08180] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0661dd980..72700db1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 10 09:29:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_clear_cache_for_remove): clear entries for included
+ module. fixed: [ruby-core:08180]
+
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.
diff --git a/eval.c b/eval.c
index 61f99a1c7..0457f841a 100644
--- a/eval.c
+++ b/eval.c
@@ -365,7 +365,8 @@ rb_clear_cache_for_remove(VALUE klass, ID id)
for (i=0; i<CACHE_SIZE; i++) {
for (j=0; j<2; j++) {
struct cache_entry *ent = cache[j]+i;
- if (ent->origin == klass && ent->mid == id) {
+ if (ent->mid == id &&
+ RCLASS(ent->origin)->m_tbl == RCLASS(klass)->m_tbl) {
ent->mid = 0;
}
}