--- old/src/share/vm/utilities/vmError.cpp 2020-01-16 16:56:34.999320456 +0300 +++ new/src/share/vm/utilities/vmError.cpp 2020-01-16 16:56:34.951322005 +0300 @@ -26,7 +26,9 @@ #include "precompiled.hpp" #include "compiler/compileBroker.hpp" #include "gc_interface/collectedHeap.hpp" +#if INCLUDE_JFR #include "jfr/jfrEvents.hpp" +#endif #include "prims/whitebox.hpp" #include "runtime/arguments.hpp" #include "runtime/frame.inline.hpp" @@ -944,12 +946,13 @@ // are handled properly. reset_signal_handlers(); +#if INCLUDE_JFR EventShutdown e; if (e.should_commit()) { e.set_reason("VM Error"); e.commit(); } - +#endif JFR_ONLY(Jfr::on_vm_shutdown(true);) } else { // If UseOsErrorReporting we call this for each level of the call stack