--- old/src/hotspot/share/runtime/java.cpp 2018-10-25 09:53:08.190886789 -0700 +++ new/src/hotspot/share/runtime/java.cpp 2018-10-25 09:53:07.844854035 -0700 @@ -609,6 +609,26 @@ ShouldNotReachHere(); } +void vm_notify_during_cds_dumping(const char* error, const char* message) { + if (error != NULL) { + tty->print_cr("Error occurred during CDS dumping"); + tty->print("%s", error); + if (message != NULL) { + tty->print_cr(": %s", message); + } + else { + tty->cr(); + } + } +} + +void vm_exit_during_cds_dumping(const char* error, const char* message) { + vm_notify_during_cds_dumping(error, message); + + // Failure during CDS dumping, we don't want to dump core + vm_abort(false); +} + void vm_notify_during_shutdown(const char* error, const char* message) { if (error != NULL) { tty->print_cr("Error occurred during initialization of VM");