ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / runtime / openjdk-23 / patches / illumos-port-15.patch
blob1a98fa3a78c3b4f1d79edd9227582109e41a3d01
2 This fixes the following frequently seen warning
4 SIGSEGV happened inside stack but outside yellow and red zone.
6 diff --git a/src/hotspot/os_cpu/solaris_x86/os_solaris_x86.cpp b/src/hotspot/os_cpu/solaris_x86/os_solaris_x86.cpp
7 index c5a72c791..9d9ab5618 100644
8 --- a/src/hotspot/os_cpu/solaris_x86/os_solaris_x86.cpp
9 +++ b/src/hotspot/os_cpu/solaris_x86/os_solaris_x86.cpp
10 @@ -292,8 +292,11 @@ bool PosixSignals::pd_hotspot_signal_handler(int sig, siginfo_t* info,
11 // Handle ALL stack overflow variations here
12 if (sig == SIGSEGV && info->si_code == SEGV_ACCERR) {
13 address addr = (address) info->si_addr;
14 - if (os::Posix::handle_stack_overflow(thread, addr, pc, uc, &stub)) {
15 - return 1; // continue
16 + if (thread->is_in_full_stack(addr)) {
17 + // stack overflow
18 + if (os::Posix::handle_stack_overflow(thread, addr, pc, uc, &stub)) {
19 + return true; // continue
20 + }