< prev index next >
src/share/vm/utilities/exceptions.cpp
Print this page
rev 13180 : imported patch 8181917-refactor-ul-logstream
*** 25,34 ****
--- 25,35 ----
#include "precompiled.hpp"
#include "classfile/systemDictionary.hpp"
#include "classfile/vmSymbols.hpp"
#include "compiler/compileBroker.hpp"
#include "logging/log.hpp"
+ #include "logging/logStream.hpp"
#include "memory/resourceArea.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/init.hpp"
#include "runtime/java.hpp"
#include "runtime/javaCalls.hpp"
*** 51,65 ****
_exception_file = file;
_exception_line = line;
}
void ThreadShadow::clear_pending_exception() {
! if (_pending_exception != NULL && log_is_enabled(Debug, exceptions)) {
ResourceMark rm;
! outputStream* logst = Log(exceptions)::debug_stream();
! logst->print("Thread::clear_pending_exception: cleared exception:");
! _pending_exception->print_on(logst);
}
_pending_exception = NULL;
_exception_file = NULL;
_exception_line = 0;
}
--- 52,67 ----
_exception_file = file;
_exception_line = line;
}
void ThreadShadow::clear_pending_exception() {
! LogTarget(Debug, exceptions) lt;
! if (_pending_exception != NULL && lt.is_enabled()) {
ResourceMark rm;
! LogStream ls(lt);
! ls.print("Thread::clear_pending_exception: cleared exception:");
! _pending_exception->print_on(&ls);
}
_pending_exception = NULL;
_exception_file = NULL;
_exception_line = 0;
}
< prev index next >