jcstress icon indicating copy to clipboard operation
jcstress copied to clipboard

CODETOOLS-7903086: jcstress: Deadlock testing mode

Open shipilev opened this issue 3 years ago • 1 comments

A few samples, notably DiningPhilosophers and ProducerConsumer are actually testing for multi-actor deadlock. It is now faked by using the @Arbiter and default (continuous) mode, but it comes with a few drawbacks.

First, it is kludgy. Second, that mode runs @Actor once per @State, and so deadlock opportunity is rather narrow.

Instead, we should be having a special deadlock mode.


Progress

  • [x] Change must not contain extraneous whitespace
  • [ ] Change must be properly reviewed

Issue

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jcstress pull/110/head:pull/110
$ git checkout pull/110

Update a local copy of the PR:
$ git checkout pull/110
$ git pull https://git.openjdk.java.net/jcstress pull/110/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 110

View PR using the GUI difftool:
$ git pr show -t 110

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jcstress/pull/110.diff

shipilev avatar Jan 12 '22 13:01 shipilev

:wave: Welcome back shade! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Jan 12 '22 13:01 bridgekeeper[bot]

@shipilev This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Dec 04 '23 19:12 bridgekeeper[bot]

@shipilev This pull request has been inactive for more than 16 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

bridgekeeper[bot] avatar Jan 29 '24 22:01 bridgekeeper[bot]