summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 730d89c6b8..b1f22e7d84 100644
--- a/vm.c
+++ b/vm.c
@@ -1406,6 +1406,11 @@ rb_vm_mark(void *ptr)
}
mark_event_hooks(vm->event_hooks);
+
+ for (i = 0; i < RUBY_NSIG; i++) {
+ if (vm->trap_list[i].cmd)
+ rb_gc_mark(vm->trap_list[i].cmd);
+ }
}
RUBY_MARK_LEAVE("vm");