RFR: 8369622: GlobalChunkPoolMutex needs to be recursive
David Holmes
dholmes at openjdk.org
Tue Oct 14 05:14:08 UTC 2025
On Mon, 13 Oct 2025 06:43:49 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> src/hotspot/share/memory/arena.cpp line 43:
>>
>>> 41: // code and other areas. For many calls, the current thread has not
>>> 42: // been created so we cannot use Mutex.
>>> 43: class RecursivePlatformMutex : public PlatformMutex {
>>
>> There's already recursive platform Mutex in MutexLocker.hpp
>
> D'oh, I didn't know that.
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.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27759#discussion_r2427925126
More information about the hotspot-runtime-dev
mailing list