RFR: 8369622: GlobalChunkPoolMutex needs to be recursive [v2]
Coleen Phillimore
coleenp at openjdk.org
Wed Oct 15 20:51:49 UTC 2025
On Tue, 14 Oct 2025 05:10:41 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> But you can't use that one because we may not have a current thread and we don't want safepoint interactions for JavaThreads IIUC.
>
> 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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27759#discussion_r2433781074
More information about the hotspot-runtime-dev
mailing list