org.openjdk.jcstress.tests.locks.stamped.StampedLockTransitionTests.WO_WW

Description and references

null

Environment

java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 14
java.vendor N/A
java.version 14.0.1-internal
java.vm.name OpenJDK 64-Bit Server VM
java.vm.vendor Oracle Corporation
java.vm.version 14.0.1-internal+0-adhoc.buildslave.jdk14
os.arch aarch64
os.name Linux
os.version 4.16.0-290-arm64

Test configurations

TC 1 JVM options: [-XX:-TieredCompilation] Iterations: 1 Time: 10 Stride: [10, 10000] (capped by NONE)
TC 2 JVM options: [-XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 1 Time: 10 Stride: [10, 512] (capped by TIME)
TC 3 JVM options: [-XX:TieredStopAtLevel=1] Iterations: 1 Time: 10 Stride: [10, 32] (capped by TIME)
TC 4 JVM options: [-Xint] Iterations: 1 Time: 10 Stride: [10, 512] (capped by TIME)

Observed states

Observed state TC 1 TC 2 TC 3 TC 4 Expectation Interpretation
-1, 1 7 7 7 0 ACCEPTABLE One of the thread had succeeded in acquiring the write lock, breaking another from acquiring another write lock.
1, -1 3 3 3 0 ACCEPTABLE One of the thread had succeeded in acquiring the write lock, breaking another from acquiring another write lock.
1, 1 327671 11255 1079 13303 ACCEPTABLE T1 had succeeded in acquiring the write lock, and converted it to optimistic; which allowed T2 to acquire and hold the write lock.
OK OK OK OK

Auxiliary data