Java Memory Model

Proving inter-thread visibility, ordering and atomicity under the Java Memory Model. Covers actions/executions, synchronization order, synchronizes-with and happens-before, data races, sequential consistency for correctly synchronized programs, volatile publication, monitor and lifecycle edges, final-field freeze semantics, safe publication, compound invariants, benign races, constructor escape, wait/notify, and architecture/JIT independence. Use for shared-state correctness reviews and intermittent outcomes. VarHandle modes, algorithms, locks and testing mechanics have separate owners.

robsonkades 8ee60cf 4 files · 24.3 KB Updated

File contents

robsonkades/agent-skills/tree/main/skills/java-memory-model commit 8ee60cf9f5

Frequently asked questions

npx skillmds@latest add robsonkades/java-memory-model