< prev index next >

src/share/vm/utilities/vmError.cpp

Print this page

        

@@ -24,11 +24,13 @@
 
 #include <fcntl.h>
 #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"
 #include "runtime/init.hpp"
 #include "runtime/os.hpp"

@@ -942,16 +944,17 @@
 
     // reset signal handlers or exception filter; make sure recursive crashes
     // 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
     // while searching for the exception handler.  Only the first level needs
     // to be reported.
< prev index next >