< prev index next >
src/share/vm/utilities/exceptions.cpp
Print this page
rev 13180 : imported patch 8181917-refactor-ul-logstream
@@ -25,10 +25,11 @@
#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,15 +52,16 @@
_exception_file = file;
_exception_line = line;
}
void ThreadShadow::clear_pending_exception() {
- if (_pending_exception != NULL && log_is_enabled(Debug, exceptions)) {
+ LogTarget(Debug, exceptions) lt;
+ if (_pending_exception != NULL && lt.is_enabled()) {
ResourceMark rm;
- outputStream* logst = Log(exceptions)::debug_stream();
- logst->print("Thread::clear_pending_exception: cleared exception:");
- _pending_exception->print_on(logst);
+ 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 >