[前][次][番号順一覧][スレッド一覧]

ruby-changes:12948

From: nobu <ko1@a...>
Date: Fri, 28 Aug 2009 09:34:31 +0900 (JST)
Subject: [ruby-changes:12948] Ruby:r24688 (trunk): * iseq.c (iseq_mark): skip outdated cache entries.

nobu	2009-08-28 09:34:12 +0900 (Fri, 28 Aug 2009)

  New Revision: 24688

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24688

  Log:
    * iseq.c (iseq_mark): skip outdated cache entries.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24687)
+++ ChangeLog	(revision 24688)
@@ -1,3 +1,7 @@
+Fri Aug 28 09:34:04 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* iseq.c (iseq_mark): skip outdated cache entries.
+
 Fri Aug 28 07:25:25 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* enumerator.c (next_i): typo fixed (reached at end -> reached an
Index: iseq.c
===================================================================
--- iseq.c	(revision 24687)
+++ iseq.c	(revision 24688)
@@ -108,6 +108,7 @@
 	    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);
 	    }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]