From 4fb9d7ffeeb71dd5d09288b9bd24de2925c0bb89 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 8 Sep 2009 12:48:17 +0000 Subject: [PATCH] * vm.c (rb_thread_mark): mark callers iseqs. [ruby-core:25474] [Bug #2062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ vm.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index f8b06d2fd1..1256244323 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 8 21:48:15 2009 Nobuyoshi Nakada + + * vm.c (rb_thread_mark): mark callers iseqs. [ruby-core:25474] + [Bug #2062] + Tue Sep 8 11:53:58 2009 Koichi Sasada * iseq.c (iseq_mark): no need to mark inline cache entries. diff --git a/vm.c b/vm.c index 6874fe829f..3db6cc726b 100644 --- a/vm.c +++ b/vm.c @@ -1573,6 +1573,7 @@ rb_thread_mark(void *ptr) while (cfp != limit_cfp) { rb_gc_mark(cfp->proc); + if (cfp->iseq) rb_gc_mark(cfp->iseq->self); cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp); } }