The Java Concurrency Stress tests (jcstress) part of the OpenJDK and is an experimental harness and a suite of tests to aid the research in the correctness of concurrency support in the JVM, class libraries, and hardware.
This project provides an outline on how to build and execute jcstress test cases. It uses the jcstress-gradle-plugin for gradle integration.
Simply compile and run the tests via
gradle jcstress
This will generate a test report in ./build/reports/jcstress
For further execution options refer to the jcstress-gradle-plugin documentation.