On Thu, 18 Jun 2026 15:30:46 GMT, Jorn Vernee <[email protected]> wrote:
>> The `maybeAdapt` call happens in `makeFieldHandle`, passing the wrapping >> `LazyInitializingVarHandle` or the target handle if the class is fully >> initialised. > > True. Ok, let's keep it like this then The maybeAdapt ideally happens wherever a VarHandle is returned. Before the adaption wraps both the underlying FieldStaticReadOnly/Write and the LazyInitializingVarHandle. Unfortunately, now we need this `StaticFieldVarHandle` type, so we can't wrap the FieldStaticReadOnly/Write; we are still wrapping the LazyInitializingVarHandle. ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2550#discussion_r3437038792
