RFR: JDK-8304723: Statically allocate global mutexes

Coleen Phillimore coleenp at openjdk.org
Wed Mar 22 15:53:43 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.

I have to say that I don't like this change.  I don't want to see the noisy .get() everywhere.  Can you do this without .get()?

-------------

Changes requested by coleenp (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/13143#pullrequestreview-1352952348


More information about the hotspot-dev mailing list