RFR: 7902982: jcstress: Add samples for some mutex algorithms [v3]
Michael Mirwaldt
github.com+6693355+mmirwaldt at openjdk.java.net
Tue Jun 29 15:04:52 UTC 2021
On Tue, 29 Jun 2021 14:34:25 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> I will replace the taken1 and taken2 by this solution here.
>
> Yes, that's basically something that https://github.com/openjdk/jcstress/blob/master/jcstress-samples/src/main/java/org/openjdk/jcstress/samples/api/API_01_Simple.java tests. It is known to show concurrent conflicts well.
Isn't Mutex_01_NoAlgorithm not just the same as https://github.com/openjdk/jcstress/blob/master/jcstress-samples/src/main/java/org/openjdk/jcstress/samples/api/API_01_Simple.java then???
I mean we don't need the same test twice under different names, do we?
Then I would remove either Mutex_01_NoAlgorithm or API_01_Simple. What do you think?
-------------
PR: https://git.openjdk.java.net/jcstress/pull/85
More information about the jcstress-dev
mailing list