8150085: Convert TraceClearedExceptions to Unified Loggin

Converted -XX:+TraceClearedExceptions to -Xlog:exceptions=debug

Reviewed-by: mockner, dholmes, coleenp
This commit is contained in:
Rachel Protacio 2016-03-15 15:43:04 -04:00
parent 3d04448c1f
commit 45b1e8d5e9
2 changed files with 5 additions and 8 deletions

View file

@ -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;