RFR: 7902982: jcstress: Add samples for some mutex algorithms [v3]
Michael Mirwaldt
github.com+6693355+mmirwaldt at openjdk.java.net
Tue Jun 29 14:46:17 UTC 2021
On Tue, 29 Jun 2021 14:28:46 GMT, Vladimir Sitnikov <vsitnikov at openjdk.org> wrote:
>> I have added a comment now to Mutex_01_NoAlgorithm . I hope users understand my explaination.
>> If you like to change something in my explaination, just tell me.
>
> I am afraid Alexey suggests `r.r1 = ++v;` pattern that is indeed easier to read (less 1-2 in variable names), and it is easier to reason about at the same time: the outcome becomes "the order of actors in the critical section".
Never mind.
-------------
PR: https://git.openjdk.java.net/jcstress/pull/85
More information about the jcstress-dev
mailing list