On Tue, 28 Apr 2026 17:48:44 GMT, Jaikiran Pai <[email protected]> wrote:
>> Most classes are annotated with >> `@jdk.internal.vm.annotation.TrustFinalFields`, which is a blanket assertion >> that all plain fields (not array components) are stable. > > Hello Per, from what I understand of > `jdk.internal.vm.annotation.TrustFinalFields`, that annotation only applies > for `final` fields: > >> Indicates all instance final fields declared in the annotated class should >> be trusted as constants by compilers in `ciField::is_constant`. > > `size` and `hash` fields aren't `final` here, so `TrustFinalFields` wouldn't > play a role for these fields. Like Viktor and Maurizio note, I think these > fields seem to be missing an explicit `@Stable`. Yes, you are right. Thanks for pointing this out! ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30194#discussion_r3161780177
