RFR: 8369250: Assess and remedy any unsafe usage of the Semaphore used by NonJavaThread::List

Stefan Karlsson stefank at openjdk.org
Tue Oct 7 08:58:46 UTC 2025


On Tue, 7 Oct 2025 08:50:41 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

>> It might be necessary to make `_the_list` be a file scoped variable rather
>> than class scoped, to avoid needing to expose things in the header.
>
> Hmm. This seems to compile on my mac at least:
> https://github.com/openjdk/jdk/compare/master...stefank:jdk:pull_27664_alternative

http://cppreference.com/w/cpp/language/static.html
> The declaration inside the class body is not a definition and may declare the member to be of [incomplete type](https://www.cppreference.com/w/cpp/language/incomplete_type.html)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27664#discussion_r2409908389


More information about the hotspot-runtime-dev mailing list