RFR: JDK-8304723: Statically allocate global mutexes [v3]

Justin King jcking at openjdk.org
Thu Mar 23 15:08:53 UTC 2023


> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into mutexlocker-static
 - Revert back to previous approach
   
   Signed-off-by: Justin King <jcking at google.com>
 - Fix lock being initialized twice and lock never initialized
   
   Signed-off-by: Justin King <jcking at google.com>
 - Avoid dynamically allocating statically defined mutexes and monitors
   
   Signed-off-by: Justin King <jcking at google.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/13143/files
  - new: https://git.openjdk.org/jdk/pull/13143/files/54263bd1..f4991df6

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=13143&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=13143&range=01-02

  Stats: 3100 lines in 135 files changed: 1029 ins; 431 del; 1640 mod
  Patch: https://git.openjdk.org/jdk/pull/13143.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13143/head:pull/13143

PR: https://git.openjdk.org/jdk/pull/13143


More information about the hotspot-dev mailing list