changeset 8473:0d3c3c622f96

8080718: Make -XX:CreateCoredumpOnCrash control core dumping in all cases Reviewed-by: sla, dholmes, gtriantafill
author ctornqvi
date Mon, 01 Jun 2015 14:02:59 -0700
parents 1be53aada8de
children 3cd78165832b
files src/os/aix/vm/os_aix.cpp src/os/bsd/vm/os_bsd.cpp src/os/linux/vm/os_linux.cpp src/os/solaris/vm/os_solaris.cpp src/os/windows/vm/os_windows.cpp src/share/vm/runtime/os.cpp
diffstat 6 files changed, 4 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/aix/vm/os_aix.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/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/src/os/bsd/vm/os_bsd.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/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/src/os/linux/vm/os_linux.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/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/src/os/solaris/vm/os_solaris.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/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/src/os/windows/vm/os_windows.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/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/src/share/vm/runtime/os.cpp	Mon Jun 01 14:01:20 2015 -0700
+++ b/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