summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
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);
}
}