RFR: 7902982: jcstress: Add samples for some mutex algorithms (newer ticket)

mmirwaldt for openjdk github.com+86246875+mmirwaldt-openjdk at openjdk.java.net
Mon Jun 21 16:39:36 UTC 2021


On Mon, 21 Jun 2021 15:19:13 GMT, mmirwaldt for openjdk <github.com+86246875+mmirwaldt-openjdk 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 into Java.
> I have also tried out those examples: they compile and they run without any problems.

Sorry for the multiple PRs and the confusion. I was not able to reopen the older ticket but only this one here.
I leave it open until that silly OCA issues are resolved and this PR can be reviewed and merged into the master.

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

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


More information about the jcstress-dev mailing list