2 ms·
> Under the hood, the content of a stable value is stored in a non-final field annotated with the JDK-internal @Stable annotation. This is saying that the Stab
by layer8 2y ago
> Under the hood, the content of a stable value is stored in a non-final field annotated with the JDK-internal @Stable annotation.
This is saying that the StableValue instance will have a non-final field annotated that way, not that there is no StableValue instance allocated. Note that the user-code-level field is final, so that's not the field being referred to here. In fact, this description is what makes me think that the StableValue object might exist even after JITting.