org.openjdk.jcstress.tests.singletons.FinalWrapper.Safe

Tests the safe singleton pattern.

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 263810 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 290 ACCEPTABLE The singleton is observed in full.

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 337350 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 6840 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 272450 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 299020 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 109710 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 446050 ACCEPTABLE The singleton is observed in full.