[jdk24u] RFR: 8352946: SEGV_BND signal code of SIGSEGV missing from our signal-code table
Matthias Baesken
mbaesken at openjdk.org
Wed Apr 2 15:22:58 UTC 2025
On Wed, 2 Apr 2025 15:16:30 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> 8352946: SEGV_BND signal code of SIGSEGV missing from our signal-code table
>
> src/hotspot/os/posix/signals_posix.cpp line 976:
>
>> 974: { SIGSEGV, SEGV_MAPERR, "SEGV_MAPERR", "Address not mapped to object." },
>> 975: { SIGSEGV, SEGV_ACCERR, "SEGV_ACCERR", "Invalid permissions for mapped object." },
>> 976: #if defined(LINUX)
>
> Suggestion:
>
> #if defined(SEGV_BNDERR)
>
> safer; in case other platforms have this too, and in case Linux has this not. As long as this is a macro, at least.
I define it (line 54) if it is not there so it should be safe.
-------------
PR Review Comment: https://git.openjdk.org/jdk24u/pull/175#discussion_r2025069574
More information about the jdk-updates-dev
mailing list