RFR: JDK-8304723: Statically allocate global mutexes [v2]
Thomas Stuefe
stuefe at openjdk.org
Thu Mar 23 06:47:42 UTC 2023
On Wed, 22 Mar 2023 17:24:28 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.
>
> Justin King has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix lock being initialized twice and lock never initialized
>
> Signed-off-by: Justin King <jcking at google.com>
In case I was not clear: I like the intention of this patch and would prefer static allocation for Mutexes too.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13143#issuecomment-1480677324
More information about the hotspot-dev
mailing list