From 1612ad9d326b18d3a2fd354be9af73f3d005311a Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 28 Aug 2009 00:34:12 +0000 Subject: * 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 --- iseq.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 169c1e5460..5bbd2f1db6 100644 --- a/iseq.c +++ b/iseq.c @@ -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); } -- cgit v1.2.3