--- 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 {