RFR: 8352971: Increase maximum number of hold counts for ReentrantReadWriteLock

Viktor Klang vklang at openjdk.org
Thu Mar 27 09:08:00 UTC 2025


I'm breaking this change out as a separate improvement, since it will not be generally possible to adjust these limits on the j.u.c primitives since they might already use a backing `long` to pack in information which needs to be updated atomically (would require 128-bit atomics to widen them, and it still infeasible to change return types of pre-existing APIs).

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

Commit messages:
 - Adding support for more than 65k readers and writers of ReentrantReadWriteLock

Changes: https://git.openjdk.org/jdk/pull/24261/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24261&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8352971
  Stats: 141 lines in 4 files changed: 106 ins; 0 del; 35 mod
  Patch: https://git.openjdk.org/jdk/pull/24261.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24261/head:pull/24261

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


More information about the core-libs-dev mailing list