diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-28 00:34:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-28 00:34:12 +0000 |
commit | 1612ad9d326b18d3a2fd354be9af73f3d005311a (patch) | |
tree | f5cc4563a8f60f901486328bd77522116addc3a7 | |
parent | b587368d712a71053b792f6bff9132e8b145b14c (diff) | |
download | ruby-1612ad9d326b18d3a2fd354be9af73f3d005311a.tar.gz |
* iseq.c (iseq_mark): skip outdated cache entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | iseq.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Fri Aug 28 09:34:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * iseq.c (iseq_mark): skip outdated cache entries. + Fri Aug 28 07:25:25 2009 Yukihiro Matsumoto <matz@ruby-lang.org> * enumerator.c (next_i): typo fixed (reached at end -> reached an @@ -108,6 +108,7 @@ iseq_mark(void *ptr) struct iseq_inline_cache_entry *const ic = &iseq->ic_entries[i]; RUBY_MARK_UNLESS_NULL(ic->ic_class); RUBY_MARK_UNLESS_NULL(ic->ic_value); + if (ic->ic_vmstat != GET_VM_STATE_VERSION()) continue; if (ic->ic_method) { rb_gc_mark_method_entry(ic->ic_method); } |