8073464: GC workers do not have thread names

Reviewed-by: brutisso, tschatzl
This commit is contained in:
David Lindholm 2015-03-03 12:19:35 +01:00
parent 40d3986051
commit a827cdfa10
7 changed files with 15 additions and 9 deletions

View file

@ -1161,6 +1161,10 @@ void NamedThread::set_name(const char* format, ...) {
va_end(ap);
}
void NamedThread::initialize_named_thread() {
set_native_thread_name(name());
}
void NamedThread::print_on(outputStream* st) const {
st->print("\"%s\" ", name());
Thread::print_on(st);