summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-23 09:54:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-23 09:54:07 +0000
commit3c575a15c24f2eda10c57e3f30037ee3c372f994 (patch)
tree3df58c798591e0dbdc2a93df162cea32f9a523ed /vm.c
parentb828fb85dda5970334d42f1a0b542c8d3ebf825b (diff)
* vm.c (rb_thread_mark): should mark self in conrol
frames. [ruby-core:33289] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29885 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 980e7eab9f..9e7087af04 100644
--- a/vm.c
+++ b/vm.c
@@ -1644,6 +1644,7 @@ rb_thread_mark(void *ptr)
while (cfp != limit_cfp) {
rb_iseq_t *iseq = cfp->iseq;
rb_gc_mark(cfp->proc);
+ rb_gc_mark(cfp->self);
if (iseq) {
rb_gc_mark(RUBY_VM_NORMAL_ISEQ_P(iseq) ? iseq->self : (VALUE)iseq);
}