aboutsummaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 11:17:04 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 11:17:04 +0000
commita05d713879613d9947e255e4b6207109d3f0a368 (patch)
tree9070ff4d4b1189ab72913339f0f63f24f2c030fc /vm.c
parent2cd45df9280ced17ac0049a4ce112b53629ff538 (diff)
downloadruby-a05d713879613d9947e255e4b6207109d3f0a368.tar.gz
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 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);
}