--- a/src/hotspot/share/runtime/java.cpp Fri Oct 26 11:11:13 2018 +0800
+++ b/src/hotspot/share/runtime/java.cpp Thu Oct 25 21:40:17 2018 -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");