RFR: JDK-8304723: Statically allocate global mutexes
Justin King
jcking at openjdk.org
Wed Mar 22 17:24:29 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.
This has also surfaced two existing bugs: `UnregisteredClassesTable_lock` is never created and always `nullptr` and `Heap_lock` is created twice.
@dholmes-ora I assume I should fix those two issues in a separate PR. Should `UnregisteredClassesTable_lock` be `nosafepoint`?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13143#issuecomment-1479965043
More information about the hotspot-dev
mailing list