hotspot/src/share/vm/runtime/thread.cpp
changeset 37227 8c40b5b4e525
parent 37179 4dbcb3a642d2
child 37242 91e5f98fff6f
--- a/hotspot/src/share/vm/runtime/thread.cpp	Fri Apr 01 07:08:55 2016 +0200
+++ b/hotspot/src/share/vm/runtime/thread.cpp	Fri Apr 01 13:51:29 2016 +0530
@@ -153,7 +153,6 @@
 // Current thread is maintained as a thread-local variable
 THREAD_LOCAL_DECL Thread* Thread::_thr_current = NULL;
 #endif
-
 // Class hierarchy
 // - Thread
 //   - VMThread
@@ -2888,7 +2887,9 @@
 
 // Called by Threads::print() for VM_PrintThreads operation
 void JavaThread::print_on(outputStream *st) const {
-  st->print("\"%s\" ", get_thread_name());
+  st->print_raw("\"");
+  st->print_raw(get_thread_name());
+  st->print_raw("\" ");
   oop thread_oop = threadObj();
   if (thread_oop != NULL) {
     st->print("#" INT64_FORMAT " ", java_lang_Thread::thread_id(thread_oop));