mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8224793: os::die() does not honor CreateCoredumpOnCrash option
Reviewed-by: kbarrett, dholmes, stuefe
This commit is contained in:
parent
c31f5bfa4a
commit
09b642e937
5 changed files with 37 additions and 5 deletions
|
@ -1334,8 +1334,15 @@ void os::abort(bool dump_core, void* siginfo, const void* context) {
|
|||
}
|
||||
|
||||
// Die immediately, no exit hook, no abort hook, no cleanup.
|
||||
// Dump a core file, if possible, for debugging.
|
||||
void os::die() {
|
||||
::abort(); // dump core (for debugging)
|
||||
if (TestUnresponsiveErrorHandler && !CreateCoredumpOnCrash) {
|
||||
// For TimeoutInErrorHandlingTest.java, we just kill the VM
|
||||
// and don't take the time to generate a core file.
|
||||
os::signal_raise(SIGKILL);
|
||||
} else {
|
||||
::abort();
|
||||
}
|
||||
}
|
||||
|
||||
// DLL functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue