mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8223626: move print() functions to cpp files
Improve debugging experience Reviewed-by: dholmes, dlong
This commit is contained in:
parent
c90f3ee68b
commit
77d60eff6a
44 changed files with 100 additions and 45 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue