8223626: move print() functions to cpp files

Improve debugging experience

Reviewed-by: dholmes, dlong
This commit is contained in:
Coleen Phillimore 2019-05-10 09:05:29 -04:00
parent c90f3ee68b
commit 77d60eff6a
44 changed files with 100 additions and 45 deletions

View file

@ -953,6 +953,8 @@ void Thread::print_on(outputStream* st, bool print_extended_info) const {
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_on(outputStream *st, bool print_extended_info) const {
}
}
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));
}