On Mon, 27 Apr 2026 09:19:16 GMT, Maurizio Cimadamore <[email protected]> 
wrote:

>> Per Minborg has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Change the way throwing toString is handled
>
> src/java.base/share/classes/java/util/LazyCollections.java line 424:
> 
>> 422:         // -1 is used as a sentinel value for zero so we can get
>> 423:         // stable access for all `size` values.
>> 424:         private int size;
> 
> Aren't these fields missing `@Stable` ?

Most classes are annotated with `@jdk.internal.vm.annotation.TrustFinalFields`, 
which is a blanket assertion that all plain fields (not array components) are 
stable.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30194#discussion_r3152797871

Reply via email to