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:
2026-09-30 05:31:29 +00:00
commit f548d9eeb5
22 changed files with 721 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# java-core-examples
Runnable companion code for ankurm.com's Java-core / concurrency series. One Maven module per
article; each module's own README has that article's version table, quickstart, and traps.
| Module | Post |
|---|---|
| [`jmm`](jmm/) | The Java Memory Model Explained: volatile, happens-before, and Why Your Double-Checked Lock Failed |
## License
MIT - see [LICENSE](jmm/LICENSE) (per-module; a repo-wide LICENSE will move here once a second
module needs it).