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

mmirwaldt for openjdk github.com+86246875+mmirwaldt-openjdk at openjdk.java.net
Tue Jun 29 16:03:16 UTC 2021


On Tue, 29 Jun 2021 15:44:45 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.
>
> mmirwaldt for openjdk has updated the pull request incrementally with three additional commits since the last revision:
> 
>  - gave state annotation its own line
>  - reorganized the imports
>  - changed the outcomes of the mutex samples

Well, the OCA tool didn't accept mmirwaldt as github user because "it is already in use for another project" (I guess for JMH). Sounds silly and is silly. :-( I wish I could use mmirwaldt. Sorry for the confusion. I just forget sometimes to tell IntelliJ which github user it should use.
I think I need to revoke my OCA for JMH before I can use mmirwaldt again for openjdk.

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

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


More information about the jcstress-dev mailing list