mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8150085: Convert TraceClearedExceptions to Unified Loggin
Converted -XX:+TraceClearedExceptions to -Xlog:exceptions=debug Reviewed-by: mockner, dholmes, coleenp
This commit is contained in:
parent
3d04448c1f
commit
45b1e8d5e9
2 changed files with 5 additions and 8 deletions
|
@ -52,11 +52,11 @@ void ThreadShadow::set_pending_exception(oop exception, const char* file, int li
|
|||
}
|
||||
|
||||
void ThreadShadow::clear_pending_exception() {
|
||||
if (TraceClearedExceptions) {
|
||||
if (_pending_exception != NULL) {
|
||||
tty->print_cr("Thread::clear_pending_exception: cleared exception:");
|
||||
_pending_exception->print();
|
||||
}
|
||||
if (_pending_exception != NULL && log_is_enabled(Debug, exceptions)) {
|
||||
ResourceMark rm;
|
||||
outputStream* logst = LogHandle(exceptions)::debug_stream();
|
||||
logst->print("Thread::clear_pending_exception: cleared exception:");
|
||||
_pending_exception->print_on(logst);
|
||||
}
|
||||
_pending_exception = NULL;
|
||||
_exception_file = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue