RFR: JDK-8304723: Statically allocate global mutexes
Justin King
jcking at openjdk.org
Wed Mar 22 16:26:51 UTC 2023
On Wed, 22 Mar 2023 15:23:59 GMT, Justin King <jcking at openjdk.org> wrote:
> Switch to statically allocate storage for all of Hotspot's global mutexes and monitors. This avoids needing to allocate each one dynamically at startup. These also live for the lifetime of the program, so this reduces any potential memory fragmention in the C heap.
Or something like `ReentrantMutexLocker`, since its technically making sure not to re-lock a mutex the calling thread already owners.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13143#issuecomment-1479885723
More information about the hotspot-dev
mailing list