RFR: 8369631: Assess and remedy any unsafe usage of the sr_semaphore Semaphore in the Posix signal code [v2]

David Holmes dholmes at openjdk.org
Wed Oct 15 01:30:06 UTC 2025


On Tue, 14 Oct 2025 06:57:34 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> David Holmes has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Switch to DeferredStatic per Kim's request
>
> 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.

Thanks for the review @stefank - somehow I didn't see your review before I saw Kim's request to use `DeferredStatic` which I have now done.

> I don't understand how those semaphore were guaranteed to be correctly initialized before

It was statically initialized as part of loading libjvm.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27762#issuecomment-3404186490


More information about the hotspot-runtime-dev mailing list