RFR: 7902982: jcstress: Add samples for some mutex algorithms [v8]

Michael Mirwaldt github.com+6693355+mmirwaldt at openjdk.java.net
Tue Jun 29 15:08:18 UTC 2021


On Tue, 29 Jun 2021 13:43:06 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> I didn't add the whitespace on purpose. IntelliJ added them when I applied code reformatting.
>> I wouldn't change it because I guess most developers who use IntelliJ just use the default code format.
>> And if they apply code formatting  (as I use all the time), the whitespace will accidentally added again anyway.
>> What do you think about that?
>
> That formatting rule makes little sense, IMO. Should be:
> 
> while (flagForActor2.get() && turn.get() == 2); // wait

Yes, I know. I will remove it and hope that nobody touches this sample again and then reformats the code in IntelliJ ...

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

PR: https://git.openjdk.java.net/jcstress/pull/85


More information about the jcstress-dev mailing list