RFR: 8349748: [leyden] ciEnv::register_method should lock the correct queue lock

Aleksey Shipilev shade at openjdk.org
Mon Feb 10 17:59:01 UTC 2025


Mainline code locks `MethodCompileQueue_lock` in `ciEnv::register_method`. But with Leyden-s `UseGlobalCompileQueueLock = false`, we have separate locks, per compile queue. So it seems to stand to reason we should be locking those locks, not a global one.

I have not been able to attribute this gap to any bug or performance issue, but I think we better fix this proactively.

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

Commit messages:
 - Fix

Changes: https://git.openjdk.org/leyden/pull/37/files
  Webrev: https://webrevs.openjdk.org/?repo=leyden&pr=37&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8349748
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/leyden/pull/37.diff
  Fetch: git fetch https://git.openjdk.org/leyden.git pull/37/head:pull/37

PR: https://git.openjdk.org/leyden/pull/37


More information about the leyden-dev mailing list