8080718: Make -XX:CreateCoredumpOnCrash control core dumping in all cases
authorctornqvi
Mon, 01 Jun 2015 14:02:59 -0700
changeset 31026 b87ccf34b54c
parent 31025 5cc170f4923d
child 31027 6df6a1332f23
8080718: Make -XX:CreateCoredumpOnCrash control core dumping in all cases Reviewed-by: sla, dholmes, gtriantafill
hotspot/src/os/aix/vm/os_aix.cpp
hotspot/src/os/bsd/vm/os_bsd.cpp
hotspot/src/os/linux/vm/os_linux.cpp
hotspot/src/os/solaris/vm/os_solaris.cpp
hotspot/src/os/windows/vm/os_windows.cpp
hotspot/src/share/vm/runtime/os.cpp
--- a/hotspot/src/os/aix/vm/os_aix.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/hotspot/src/os/aix/vm/os_aix.cpp	Mon Jun 01 14:02:59 2015 -0700
@@ -1267,10 +1267,6 @@
 // Note: os::abort() might be called very early during initialization, or
 // called from signal handler. Before adding something to os::abort(), make
 // sure it is async-safe and can handle partially initialized VM.
-void os::abort(bool dump_core) {
-  abort(dump_core, NULL, NULL);
-}
-
 void os::abort(bool dump_core, void* siginfo, void* context) {
   os::shutdown();
   if (dump_core) {
--- a/hotspot/src/os/bsd/vm/os_bsd.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp	Mon Jun 01 14:02:59 2015 -0700
@@ -1131,10 +1131,6 @@
 // Note: os::abort() might be called very early during initialization, or
 // called from signal handler. Before adding something to os::abort(), make
 // sure it is async-safe and can handle partially initialized VM.
-void os::abort(bool dump_core) {
-  abort(dump_core, NULL, NULL);
-}
-
 void os::abort(bool dump_core, void* siginfo, void* context) {
   os::shutdown();
   if (dump_core) {
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Mon Jun 01 14:02:59 2015 -0700
@@ -1478,10 +1478,6 @@
 // Note: os::abort() might be called very early during initialization, or
 // called from signal handler. Before adding something to os::abort(), make
 // sure it is async-safe and can handle partially initialized VM.
-void os::abort(bool dump_core) {
-  abort(dump_core, NULL, NULL);
-}
-
 void os::abort(bool dump_core, void* siginfo, void* context) {
   os::shutdown();
   if (dump_core) {
--- a/hotspot/src/os/solaris/vm/os_solaris.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/hotspot/src/os/solaris/vm/os_solaris.cpp	Mon Jun 01 14:02:59 2015 -0700
@@ -1520,10 +1520,6 @@
 // Note: os::abort() might be called very early during initialization, or
 // called from signal handler. Before adding something to os::abort(), make
 // sure it is async-safe and can handle partially initialized VM.
-void os::abort(bool dump_core) {
-  abort(dump_core, NULL, NULL);
-}
-
 void os::abort(bool dump_core, void* siginfo, void* context) {
   os::shutdown();
   if (dump_core) {
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/hotspot/src/os/windows/vm/os_windows.cpp	Mon Jun 01 14:02:59 2015 -0700
@@ -1095,10 +1095,6 @@
   win32::exit_process_or_thread(win32::EPT_PROCESS, 1);
 }
 
-void os::abort(bool dump_core) {
-  abort(dump_core, NULL, NULL);
-}
-
 // Die immediately, no exit hook, no abort hook, no cleanup.
 void os::die() {
   win32::exit_process_or_thread(win32::EPT_PROCESS_DIE, -1);
--- a/hotspot/src/share/vm/runtime/os.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/hotspot/src/share/vm/runtime/os.cpp	Mon Jun 01 14:02:59 2015 -0700
@@ -775,6 +775,10 @@
   pd_start_thread(thread);
 }
 
+void os::abort(bool dump_core) {
+  abort(dump_core && CreateCoredumpOnCrash, NULL, NULL);
+}
+
 //---------------------------------------------------------------------------
 // Helper functions for fatal error handler