Registry / testing / jcstress-core

jcstress-core

JSON →
library0.1.2javamavenunverified

An experimental harness and suite of tests for researching correctness of concurrency support in the JVM, class libraries, and hardware.

<dependency> <groupId>org.openjdk.jcstress</groupId> <artifactId>jcstress-core</artifactId> <version>0.1.2</version> </dependency>
INSTALL
IMPORT
SIG · JCSTRESS-CORE
J
jcstress-core
testingjavav0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

II_Result
org.openjdk.jcstress.infra.results.II_Result

Minimal JCStress test with two actors and a state.

import org.openjdk.jcstress.annotations.*; import org.openjdk.jcstress.infra.results.II_Result; @JCStressTest @Outcome(id = "0, 0", expect = Expect.ACCEPTABLE, desc = "Both updates seen") @State public class ConcurrencyTest { int x; @Actor public void actor1(II_Result r) { x = 1; r.r1 = x; } @Actor public void actor2(II_Result r) { x = 2; r.r2 = x; } }
Debug
Known issues
breakingJCStress is an experimental tool; API may change between versions.
fix
Pin to a specific version and test thoroughly.
affects: all
Upgrade
Version history
0.1.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources