On Wed, 2 Apr 2025 13:22:44 GMT, Per Minborg <pminb...@openjdk.org> wrote:

>> Implement JEP 502.
>> 
>> The PR passes tier1-tier3 tests.
>
> Per Minborg has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Add info that Map#values and Map#entrySet are stable

src/java.base/share/classes/java/lang/StableValue.java line 494:

> 492:      * <p>
> 493:      * The provided {@code supplier} will only be invoked once even if 
> invoked from
> 494:      * several threads unless the {@code supplier} throws an exception.

Is this the supplier instance or any supplier? Just wondering about the case 
where two threads are invoke it with different instances (for whatever reason), 
I can't tell from the javadoc.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r2024880627

Reply via email to