RFR: 8314480: Memory ordering spec updates in java.lang.ref [v7]

Brent Christian bchristi at openjdk.org
Wed Jan 31 00:53:07 UTC 2024


On Mon, 27 Nov 2023 21:51:01 GMT, Hans Boehm <duke at openjdk.org> wrote:

>> Brent Christian has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Updates to clear() and enqueue()
>
> src/java.base/share/classes/java/lang/ref/package-info.java line 104:
> 
>> 102:  * <ul>
>> 103:  *
>> 104:  * <li> Actions in a thread prior to calling
> 
> Is line 104 needed? Can we just say that Refrence.reachaboilityFence(x) happens-before ...

This language is consistent with other parts of this fix (and elsewhere in the API spec).

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16644#discussion_r1472172567


More information about the core-libs-dev mailing list