8227275: Within native OOM error handling, assertions may hang the process

Reviewed-by: mdoerr, coleenp
This commit is contained in:
Thomas Stuefe 2019-07-11 06:56:51 +02:00
parent 4b5b4f479c
commit ac0e72332e
10 changed files with 40 additions and 15 deletions

View file

@ -271,8 +271,9 @@ JVM_handle_linux_signal(int sig,
#ifdef CAN_SHOW_REGISTERS_ON_ASSERT
if ((sig == SIGSEGV || sig == SIGBUS) && info != NULL && info->si_addr == g_assert_poison) {
handle_assert_poison_fault(ucVoid, info->si_addr);
return 1;
if (handle_assert_poison_fault(ucVoid, info->si_addr)) {
return 1;
}
}
#endif