RFR: 8357481: Excessive CompileTask wait/notify monitor creation [v3]

Aleksey Shipilev shade at openjdk.org
Wed May 28 19:27:46 UTC 2025


> See bug for rationale.
> 
> This PR implements the 2nd solution from the bug: lift the lock to be global. As described in the bug, excess locking work would realistically affect Xcomp, and only in a minor way. But we will reap a minor footprint/latency benefit by not constructing the lock for every `CompileTask`.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `compiler`
>  - [x] Linux x86_64 server fastdebug, `all`
>  - [x] Linux AArch64 server fastdebug, `all`

Aleksey Shipilev 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 three additional commits since the last revision:

 - Merge branch 'master' into JDK-8357481-compile-task-lock
 - Merge branch 'master' into JDK-8357481-compile-task-lock
 - Fix

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25364/files
  - new: https://git.openjdk.org/jdk/pull/25364/files/5b781e16..6a8955d8

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

  Stats: 20703 lines in 492 files changed: 13662 ins; 4483 del; 2558 mod
  Patch: https://git.openjdk.org/jdk/pull/25364.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25364/head:pull/25364

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


More information about the hotspot-dev mailing list