< prev index next >

src/share/vm/runtime/thread.cpp

Print this page
rev 13288 : imported patch 8181917-refactor-ul-logstream

*** 39,48 **** --- 39,49 ---- #include "interpreter/linkResolver.hpp" #include "interpreter/oopMapCache.hpp" #include "jvmtifiles/jvmtiEnv.hpp" #include "logging/log.hpp" #include "logging/logConfiguration.hpp" + #include "logging/logStream.hpp" #include "memory/metaspaceShared.hpp" #include "memory/oopFactory.hpp" #include "memory/resourceArea.hpp" #include "memory/universe.inline.hpp" #include "oops/instanceKlass.hpp"
*** 109,118 **** --- 110,120 ---- #include "gc/parallel/pcTasks.hpp" #endif // INCLUDE_ALL_GCS #if INCLUDE_JVMCI #include "jvmci/jvmciCompiler.hpp" #include "jvmci/jvmciRuntime.hpp" + #include "logging/logHandle.hpp" #endif #ifdef COMPILER1 #include "c1/c1_Compiler.hpp" #endif #ifdef COMPILER2
*** 2101,2119 **** if (!has_pending_exception() || !pending_exception()->is_a(SystemDictionary::ThreadDeath_klass())) { // We cannot call Exceptions::_throw(...) here because we cannot block set_pending_exception(_pending_async_exception, __FILE__, __LINE__); ! if (log_is_enabled(Info, exceptions)) { ResourceMark rm; ! outputStream* logstream = Log(exceptions)::info_stream(); ! logstream->print("Async. exception installed at runtime exit (" INTPTR_FORMAT ")", p2i(this)); if (has_last_Java_frame()) { frame f = last_frame(); ! logstream->print(" (pc: " INTPTR_FORMAT " sp: " INTPTR_FORMAT " )", p2i(f.pc()), p2i(f.sp())); } ! logstream->print_cr(" of type: %s", _pending_async_exception->klass()->external_name()); } _pending_async_exception = NULL; clear_has_async_exception(); } } --- 2103,2122 ---- if (!has_pending_exception() || !pending_exception()->is_a(SystemDictionary::ThreadDeath_klass())) { // We cannot call Exceptions::_throw(...) here because we cannot block set_pending_exception(_pending_async_exception, __FILE__, __LINE__); ! LogTarget(Info, exceptions) lt; ! if (lt.is_enabled()) { ResourceMark rm; ! LogStream ls(lt); ! ls.print("Async. exception installed at runtime exit (" INTPTR_FORMAT ")", p2i(this)); if (has_last_Java_frame()) { frame f = last_frame(); ! ls.print(" (pc: " INTPTR_FORMAT " sp: " INTPTR_FORMAT " )", p2i(f.pc()), p2i(f.sp())); } ! ls.print_cr(" of type: %s", _pending_async_exception->klass()->external_name()); } _pending_async_exception = NULL; clear_has_async_exception(); } }
< prev index next >