8354016: Update ReentrantReadWriteLock documentation to reflect its new max capacity

Reviewed-by: alanb
This commit is contained in:
Viktor Klang 2025-04-08 13:49:15 +00:00
parent 250437e557
commit 676cfae91c

View File

@ -207,8 +207,8 @@ import jdk.internal.vm.annotation.ReservedStackAccess;
*
* <h2>Implementation Notes</h2>
*
* <p>This lock supports a maximum of 65535 recursive write locks
* and 65535 read locks. Attempts to exceed these limits result in
* <p>This lock supports a maximum of {@link Integer#MAX_VALUE} recursive write locks
* and {@link Integer#MAX_VALUE} read locks. Attempts to exceed these limits result in
* {@link Error} throws from locking methods.
*
* @since 1.5