8080718: Make -XX:CreateCoredumpOnCrash control core dumping in all cases
Reviewed-by: sla, dholmes, gtriantafill
This commit is contained in:
parent
3c90d44e1a
commit
665eee5efe
@ -1267,10 +1267,6 @@ void os::shutdown() {
|
|||||||
// Note: os::abort() might be called very early during initialization, or
|
// Note: os::abort() might be called very early during initialization, or
|
||||||
// called from signal handler. Before adding something to os::abort(), make
|
// called from signal handler. Before adding something to os::abort(), make
|
||||||
// sure it is async-safe and can handle partially initialized VM.
|
// 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) {
|
void os::abort(bool dump_core, void* siginfo, void* context) {
|
||||||
os::shutdown();
|
os::shutdown();
|
||||||
if (dump_core) {
|
if (dump_core) {
|
||||||
|
@ -1131,10 +1131,6 @@ void os::shutdown() {
|
|||||||
// Note: os::abort() might be called very early during initialization, or
|
// Note: os::abort() might be called very early during initialization, or
|
||||||
// called from signal handler. Before adding something to os::abort(), make
|
// called from signal handler. Before adding something to os::abort(), make
|
||||||
// sure it is async-safe and can handle partially initialized VM.
|
// 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) {
|
void os::abort(bool dump_core, void* siginfo, void* context) {
|
||||||
os::shutdown();
|
os::shutdown();
|
||||||
if (dump_core) {
|
if (dump_core) {
|
||||||
|
@ -1478,10 +1478,6 @@ void os::shutdown() {
|
|||||||
// Note: os::abort() might be called very early during initialization, or
|
// Note: os::abort() might be called very early during initialization, or
|
||||||
// called from signal handler. Before adding something to os::abort(), make
|
// called from signal handler. Before adding something to os::abort(), make
|
||||||
// sure it is async-safe and can handle partially initialized VM.
|
// 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) {
|
void os::abort(bool dump_core, void* siginfo, void* context) {
|
||||||
os::shutdown();
|
os::shutdown();
|
||||||
if (dump_core) {
|
if (dump_core) {
|
||||||
|
@ -1520,10 +1520,6 @@ void os::shutdown() {
|
|||||||
// Note: os::abort() might be called very early during initialization, or
|
// Note: os::abort() might be called very early during initialization, or
|
||||||
// called from signal handler. Before adding something to os::abort(), make
|
// called from signal handler. Before adding something to os::abort(), make
|
||||||
// sure it is async-safe and can handle partially initialized VM.
|
// 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) {
|
void os::abort(bool dump_core, void* siginfo, void* context) {
|
||||||
os::shutdown();
|
os::shutdown();
|
||||||
if (dump_core) {
|
if (dump_core) {
|
||||||
|
@ -1095,10 +1095,6 @@ void os::abort(bool dump_core, void* siginfo, void* context) {
|
|||||||
win32::exit_process_or_thread(win32::EPT_PROCESS, 1);
|
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.
|
// Die immediately, no exit hook, no abort hook, no cleanup.
|
||||||
void os::die() {
|
void os::die() {
|
||||||
win32::exit_process_or_thread(win32::EPT_PROCESS_DIE, -1);
|
win32::exit_process_or_thread(win32::EPT_PROCESS_DIE, -1);
|
||||||
|
@ -775,6 +775,10 @@ void os::start_thread(Thread* thread) {
|
|||||||
pd_start_thread(thread);
|
pd_start_thread(thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void os::abort(bool dump_core) {
|
||||||
|
abort(dump_core && CreateCoredumpOnCrash, NULL, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
// Helper functions for fatal error handler
|
// Helper functions for fatal error handler
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user