--- old/src/share/vm/runtime/java.cpp 2020-01-16 16:56:33.339374021 +0300 +++ new/src/share/vm/runtime/java.cpp 2020-01-16 16:56:33.291375570 +0300 @@ -30,8 +30,10 @@ #include "compiler/compileBroker.hpp" #include "compiler/compilerOracle.hpp" #include "interpreter/bytecodeHistogram.hpp" +#if INCLUDE_JFR #include "jfr/jfrEvents.hpp" #include "jfr/support/jfrThreadId.hpp" +#endif #include "memory/genCollectedHeap.hpp" #include "memory/oopFactory.hpp" #include "memory/universe.hpp" @@ -525,11 +527,13 @@ } +#if INCLUDE_JFR EventThreadEnd event; if (event.should_commit()) { event.set_thread(JFR_THREAD_ID(thread)); event.commit(); } +#endif JFR_ONLY(Jfr::on_vm_shutdown();)