hotspot/src/share/vm/runtime/java.cpp
changeset 44326 6c59cca7ff07
parent 42650 1f304d0c888b
child 46369 3bf4544bec14
--- a/hotspot/src/share/vm/runtime/java.cpp	Thu Mar 16 16:34:34 2017 +0000
+++ b/hotspot/src/share/vm/runtime/java.cpp	Wed Mar 22 16:26:09 2017 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -621,6 +621,13 @@
   }
 }
 
+void vm_exit_during_initialization() {
+  vm_notify_during_shutdown(NULL, NULL);
+
+  // Failure during initialization, we don't want to dump core
+  vm_abort(false);
+}
+
 void vm_exit_during_initialization(Handle exception) {
   tty->print_cr("Error occurred during initialization of VM");
   // If there are exceptions on this thread it must be cleared