summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 11:17:04 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 11:17:04 (GMT)
commit768bc8b88e5e4dcc89228da90d39797d5c595552 (patch)
tree9070ff4d4b1189ab72913339f0f63f24f2c030fc /vm.c
parente2a930c73a77c39f1b2aa6fa405afbab583abea2 (diff)
mark thread name string
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 2b6a917..006b0f8 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);
}