jmm: Java Memory Model companion code (volatile, happens-before, DCL)
Runnable jcstress + JUnit companion for the ankurm.com post on the Java Memory Model, double-checked locking, and the volatile fix.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
$ mvn -q test -pl jmm
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Test set: com.ankurm.jmm.SingletonBehaviorTest
|
||||
-------------------------------------------------------------------------------
|
||||
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.067 s -- in com.ankurm.jmm.SingletonBehaviorTest
|
||||
Reference in New Issue
Block a user