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

Viktor Klang vklang at openjdk.org
Fri Mar 28 15:10:24 UTC 2025


On Thu, 27 Mar 2025 11:30:11 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> 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).
>
> We'll need to double check serialization compatibility as the "sync" field is in the serial form.

@AlanBateman Good point. I'll see if I can try serializing an instance before the change and deserialize it after the change.

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

PR Comment: https://git.openjdk.org/jdk/pull/24261#issuecomment-2761642467


More information about the core-libs-dev mailing list