< prev index next >
src/share/vm/opto/runtime.cpp
Print this page
rev 13288 : imported patch 8181917-refactor-ul-logstream
@@ -41,10 +41,11 @@
#include "gc/shared/gcLocker.inline.hpp"
#include "interpreter/bytecode.hpp"
#include "interpreter/interpreter.hpp"
#include "interpreter/linkResolver.hpp"
#include "logging/log.hpp"
+#include "logging/logStream.hpp"
#include "memory/oopFactory.hpp"
#include "memory/resourceArea.hpp"
#include "oops/objArrayKlass.hpp"
#include "oops/oop.inline.hpp"
#include "oops/typeArrayOop.inline.hpp"
@@ -1285,13 +1286,15 @@
// exception handler can cause class loading, which might throw an
// exception and those fields are expected to be clear during
// normal bytecode execution.
thread->clear_exception_oop_and_pc();
- if (log_is_enabled(Info, exceptions)) {
+ LogTarget(Info, exceptions) lt;
+ if (lt.is_enabled()) {
ResourceMark rm;
- trace_exception(Log(exceptions)::info_stream(), exception(), pc, "");
+ LogStream ls(lt);
+ trace_exception(&ls, exception(), pc, "");
}
// for AbortVMOnException flag
Exceptions::debug_check_abort(exception);
< prev index next >