RFR: JDK-8304723: Statically allocate global mutexes [v5]
Coleen Phillimore
coleenp at openjdk.org
Thu Mar 23 21:53:33 UTC 2023
On Thu, 23 Mar 2023 15:27:58 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:
>
> Move alignas before static
>
> Signed-off-by: Justin King <jcking at google.com>
Ok, this is tricky but better than the more invasive change before.
-------------
Marked as reviewed by coleenp (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/13143#pullrequestreview-1355711977
More information about the hotspot-dev
mailing list