org.openjdk.jcstress.tests.singletons.Holder.Safe

Tests the safe singleton pattern.

JVM options: [-XX:TieredStopAtLevel=1] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 6663270 ACCEPTABLE The singleton is observed in full.

JVM options: [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 1744480 ACCEPTABLE The singleton is observed in full.

JVM options: [-client] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 1831790 ACCEPTABLE The singleton is observed in full.

JVM options: [-Xint] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 184900 ACCEPTABLE The singleton is observed in full.

JVM options: [-server, -XX:-TieredCompilation] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 1517510 ACCEPTABLE The singleton is observed in full.

JVM options: [-client, -XX:-TieredCompilation] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 509500 ACCEPTABLE The singleton is observed in full.

JVM options: [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM, -XX:+StressGCM] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 2887220 ACCEPTABLE The singleton is observed in full.

JVM options: [-server] Iterations: 5 Time: 200

Observed state Occurrence Expectation Interpretation
0 0 FORBIDDEN Factory returned null singleton.
1 0 FORBIDDEN The singleton data is null.
42 5605900 ACCEPTABLE The singleton is observed in full.