src/hotspot/share/runtime/thread.cpp
changeset 54807 33fe50b6d707
parent 54732 2d012a75d35c
child 54808 cf94f5c214f6
--- a/src/hotspot/share/runtime/thread.cpp	Thu May 09 14:28:30 2019 +0200
+++ b/src/hotspot/share/runtime/thread.cpp	Fri May 10 09:05:29 2019 -0400
@@ -953,6 +953,8 @@
   debug_only(if (WizardMode) print_owned_locks_on(st);)
 }
 
+void Thread::print() const { print_on(tty); }
+
 // Thread::print_on_error() is called by fatal error handler. Don't use
 // any lock or allocate memory.
 void Thread::print_on_error(outputStream* st, char* buf, int buflen) const {
@@ -3026,6 +3028,8 @@
   }
 }
 
+void JavaThread::print() const { print_on(tty); }
+
 void JavaThread::print_name_on_error(outputStream* st, char *buf, int buflen) const {
   st->print("%s", get_thread_name_string(buf, buflen));
 }