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

Coleen Phillimore coleenp at openjdk.org
Wed Oct 15 21:51:02 UTC 2025


On Wed, 15 Oct 2025 20:00:15 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> It is a `RecursiveMutex` not `RecursivePlatformMutex`
>
> RecursiveMutex has safepoint interactions only if the current thread is a JavaThread.  It could be modified to have a no-owner sentinel and maybe use os::current_thread() like this equivalent one does.
> 
> With this deferred static mechanism, I think it can allocate the semaphore which might not be allowed to be allocated with static linkage.
> 
> This code is almost a copy of that.

I tried making RecursiveLock a template but it's sort of a pain.

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

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


More information about the hotspot-runtime-dev mailing list