--- old/src/hotspot/share/utilities/vmError.cpp 2020-03-03 14:59:30.807867900 +0900 +++ new/src/hotspot/share/utilities/vmError.cpp 2020-03-03 14:59:30.489022000 +0900 @@ -29,7 +29,6 @@ #include "compiler/disassembler.hpp" #include "gc/shared/gcConfig.hpp" #include "logging/logConfiguration.hpp" -#include "jfr/jfrEvents.hpp" #include "memory/resourceArea.hpp" #include "memory/universe.hpp" #include "oops/compressedOops.hpp" @@ -618,6 +617,9 @@ st->cr(); st->print_cr("#"); + JFR_ONLY(STEP("printing jfr information")) + JFR_ONLY(Jfr::on_vm_error_report(st);) + STEP("printing bug submit message") if (should_report_bug(_id) && _verbose) { @@ -1408,15 +1410,6 @@ // reset signal handlers or exception filter; make sure recursive crashes // are handled properly. reset_signal_handlers(); - - EventShutdown e; - if (e.should_commit()) { - e.set_reason("VM Error"); - e.commit(); - } - - JFR_ONLY(Jfr::on_vm_shutdown(true);) - } else { // If UseOsErrorReporting we call this for each level of the call stack // while searching for the exception handler. Only the first level needs @@ -1538,6 +1531,8 @@ log.set_fd(-1); } + JFR_ONLY(Jfr::on_vm_shutdown(true);) + if (PrintNMTStatistics) { fdStream fds(fd_out); MemTracker::final_report(&fds);