8224793: os::die() does not honor CreateCoredumpOnCrash option

Reviewed-by: kbarrett, dholmes, stuefe
This commit is contained in:
Daniel D. Daugherty 2019-06-05 14:01:01 -04:00
parent c31f5bfa4a
commit 09b642e937
5 changed files with 37 additions and 5 deletions

View file

@ -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)