On Fri, 28 Mar 2025 16:27:28 GMT, Roger Riggs <rri...@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). > > fyi, All of the fields of Sync are transient, so there is no serializable > state, except the existence of the Sync object. @RogerRiggs Yeah, but Sync used to extend AbstractQueuedSynchronizer which has a non-transient `volatile int state` field, now Sync extends AbstractQueuedLongSynchronizer which has a non-transient `volatile long state` field. ------------- PR Comment: https://git.openjdk.org/jdk/pull/24261#issuecomment-2761872683