src/hotspot/share/utilities/vmError.cpp
branchepsilon-gc-branch
changeset 56276 ee5e58456be5
parent 56095 97689d6b0494
parent 49176 f413e471a6ab
child 56348 f3b0961adb3c
--- a/src/hotspot/share/utilities/vmError.cpp	Thu Feb 08 21:05:35 2018 +0100
+++ b/src/hotspot/share/utilities/vmError.cpp	Mon Mar 12 12:22:21 2018 +0100
@@ -481,7 +481,7 @@
 
   STEP("printing type of error")
 
-     switch(_id) {
+     switch(static_cast<unsigned int>(_id)) {
        case OOM_MALLOC_ERROR:
        case OOM_MMAP_ERROR:
          if (_size) {
@@ -1306,6 +1306,12 @@
     // are handled properly.
     reset_signal_handlers();
 
+    EventShutdown e;
+    if (e.should_commit()) {
+      e.set_reason("VM Error");
+      e.commit();
+    }
+
     TRACE_VM_ERROR();
 
   } else {