summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 2b6a917bbc..006b0f8a80 100644
--- a/vm.c
+++ b/vm.c
@@ -2126,6 +2126,8 @@ rb_thread_mark(void *ptr)
sizeof(th->machine.regs) / sizeof(VALUE));
}
+ RUBY_MARK_UNLESS_NULL(th->name);
+
rb_vm_trace_mark_event_hooks(&th->event_hooks);
}