summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-08 12:48:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-08 12:48:17 +0000
commit4fb9d7ffeeb71dd5d09288b9bd24de2925c0bb89 (patch)
tree4ae7e804c52b3d6e75dfe849ed19c4df07ac0352 /vm.c
parent488024dfcf9bb56fb22ef4ba58cc8a800190ba42 (diff)
* 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
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}