RFR: 7902982: jcstress: Add samples for some mutex algorithms

Aleksey Shipilev shade at openjdk.java.net
Fri Jul 2 14:39:51 UTC 2021


On Fri, 2 Jul 2021 05:27:58 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

>> I have implemented 3 more samples:
>> *) the NoAlgorithm sample should show users of JCStress how they can define a critical section in a simple way
>> *) one sample for the Peterson's algorithm 
>> *) one sample for the Dekker's algorithm 
>> I have translated the pseudo code implementations of the English wikipedia articles to Java.
>> I have also tried out those examples: they compile and they run without any problems.
>
> This PR seems to be missing the whole lot of fixes from the previous one. Please transplant the changes here.

> So may I now write a comment with "slash integrate", @shipilev? ("slash" will be replaced by the character)
> I am sorry that I must always ask you but I haven't done such PRs before and I want to avoid more confusion and mistakes.
> Thanks for your great patience with me!

Yeah, I think so. Bots complain your Git is probably initialized in some odd way: https://github.com/openjdk/jcstress/pull/84#issuecomment-873022315 -- you might want to take a look at those. If you fix any changeset metadata, feel free to squash the commits and force-push the result with the new metadata (this one time).

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

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


More information about the jcstress-dev mailing list