Skip to content

Commit

Permalink
* iseq.c (iseq_mark): skip outdated cache entries.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Aug 28, 2009
1 parent b587368 commit 1612ad9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions iseq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1612ad9

Please sign in to comment.