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 | a75308195eb554244bf7e7a99420359873c592ea (patch) | |
tree | f5cc4563a8f60f901486328bd77522116addc3a7 /iseq.c | |
parent | 907a080f3291baafc5554399ba67e74d97b3b400 (diff) | |
download | ruby-a75308195eb554244bf7e7a99420359873c592ea.tar.gz ruby-a75308195eb554244bf7e7a99420359873c592ea.tar.xz ruby-a75308195eb554244bf7e7a99420359873c592ea.zip |
* iseq.c (iseq_mark): skip outdated cache entries.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |