RFR: 8369631: Assess and remedy any unsafe usage of the sr_semaphore Semaphore in the Posix signal code
Stefan Karlsson
stefank at openjdk.org
Tue Oct 14 07:00:00 UTC 2025
On Mon, 13 Oct 2025 06:52:32 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Replace the statically allocated "semaphore" with a pointer and lazily initialize it. I chose this approach as we already have a second Semaphore declared that way.
>
> Testing:
> - tiers 1-3 sanity
>
> Thanks.
Looks good. I don't understand how those semaphore were guaranteed to be correctly initialized before, so I'm happy to see this change that explicitly initialization of them.
-------------
Marked as reviewed by stefank (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/27762#pullrequestreview-3334155703
More information about the hotspot-runtime-dev
mailing list