mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +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
|
@ -1461,8 +1461,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();
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
// thread_id is kernel thread id (similar to Solaris LWP id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue