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

mmirwaldt for openjdk github.com+86246875+mmirwaldt-openjdk at openjdk.java.net
Tue Jun 29 11:53:35 UTC 2021


> 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.

mmirwaldt for openjdk has updated the pull request incrementally with one additional commit since the last revision:

  improved code by applying ideas from the PR

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

Changes:
  - all: https://git.openjdk.java.net/jcstress/pull/85/files
  - new: https://git.openjdk.java.net/jcstress/pull/85/files/4f0e2099..0cf735de

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jcstress&pr=85&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jcstress&pr=85&range=00-01

  Stats: 159 lines in 3 files changed: 26 ins; 52 del; 81 mod
  Patch: https://git.openjdk.java.net/jcstress/pull/85.diff
  Fetch: git fetch https://git.openjdk.java.net/jcstress pull/85/head:pull/85

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


More information about the jcstress-dev mailing list