RFR: 8369622: GlobalChunkPoolMutex needs to be recursive [v2]

Coleen Phillimore coleenp at openjdk.org
Thu Oct 16 11:53:04 UTC 2025


On Thu, 16 Oct 2025 07:52:23 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> I tried making RecursiveLock a template but it's sort of a pain.
>
> It is basically a copy. The reason I went the longer (lines of code-wise) is because I'd prefer it if we didn't spread this implementation around, so having this handmade one in `arena.cpp` seems like an acceptable trade-off to having the RecursiveLock being templated and so on.

I agree with this.  Templating RecursiveLock is pretty horrible.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27759#discussion_r2435607768


More information about the hotspot-runtime-dev mailing list