8254722: bsd_zero builds broken after JDK-8253717

Reviewed-by: dholmes
This commit is contained in:
Jie Fu 2020-10-14 03:09:01 +00:00
parent ba5dc67a74
commit d50e0de8fb

View File

@ -172,13 +172,14 @@ JVM_handle_bsd_signal(int sig,
// check if fault address is within thread stack
if (thread->is_in_full_stack(addr)) {
StackOverflow* overflow_state = thread->stack_overflow_state();
// stack overflow
if (thread->in_stack_yellow_reserved_zone(addr)) {
thread->disable_stack_yellow_reserved_zone();
if (overflow_state->in_stack_yellow_reserved_zone(addr)) {
overflow_state->disable_stack_yellow_reserved_zone();
ShouldNotCallThis();
}
else if (thread->in_stack_red_zone(addr)) {
thread->disable_stack_red_zone();
else if (overflow_state->in_stack_red_zone(addr)) {
overflow_state->disable_stack_red_zone();
ShouldNotCallThis();
}
}