RFR: 7903383: jcstress: All State objects should be processed [v2]

Aleksey Shipilev shade at openjdk.org
Thu Jan 12 11:10:27 UTC 2023


> There is a reasonable expectation that once `@State` object is created, it would eventually be acted upon. In fact, the Javadoc for `@Actor`/`@Arbiter` mentions that actor methods would be called on each state object exactly once. There are cases where users rely on this implicit lifecycle assumption to perform cleanups at `@Arbiter` methods.
> 
> Unfortunately, once jcstress leaves the test, it keeps last created state object slice unprocessed, which breaks this assumption.

Aleksey Shipilev has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'master' into 7903383-state-lifecycle
 - Fix

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

Changes:
  - all: https://git.openjdk.org/jcstress/pull/124/files
  - new: https://git.openjdk.org/jcstress/pull/124/files/08954ecb..cf169026

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jcstress&pr=124&range=01
 - incr: https://webrevs.openjdk.org/?repo=jcstress&pr=124&range=00-01

  Stats: 14 lines in 1 file changed: 2 ins; 5 del; 7 mod
  Patch: https://git.openjdk.org/jcstress/pull/124.diff
  Fetch: git fetch https://git.openjdk.org/jcstress pull/124/head:pull/124

PR: https://git.openjdk.org/jcstress/pull/124


More information about the jcstress-dev mailing list