RFR: 7902982: jcstress: Add samples for some mutex algorithms [v10]
Michael Mirwaldt
github.com+6693355+mmirwaldt at openjdk.java.net
Tue Jun 29 15:45:02 UTC 2021
On Tue, 29 Jun 2021 15:38:32 GMT, Michael Mirwaldt <github.com+6693355+mmirwaldt at openjdk.org> wrote:
>> jcstress-samples/src/main/java/org/openjdk/jcstress/samples/concurreny/mutex/Mutex_02_DekkerAlgorithm.java line 46:
>>
>>> 44: @JCStressTest
>>> 45: @Outcome(id = {"1, 2", "2, 1"}, expect = ACCEPTABLE, desc = "Sequential execution.")
>>> 46: @Outcome(id = "1, 1", expect = ACCEPTABLE_INTERESTING, desc = "Both actors came up with the same value: lock failure.")@State
>>
>> Please move `@State` annotation to its own line.
>
> Ah, sorry. One moment
Done
-------------
PR: https://git.openjdk.java.net/jcstress/pull/85
More information about the jcstress-dev
mailing list