RFR: 8351565: Implement JEP 502: Stable Values (Preview) [v33]
Per Minborg
pminborg at openjdk.org
Thu Apr 3 08:43:15 UTC 2025
On Wed, 2 Apr 2025 14:24:20 GMT, Viktor Klang <vklang at openjdk.org> wrote:
>> 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 377:
>
>> 375: *
>> 376: * <h2 id="thread-safety">Thread Safety</h2>
>> 377: * The content of a stable value is guaranteed to be set at most once. If competing
>
> Suggestion:
>
> * The contents of a stable value is guaranteed to be set at most once. If competing
I think it should be "content" as only one element can be set?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23972#discussion_r2026493761
More information about the core-libs-dev
mailing list