Close Encounters of The Java Memory Model Kind
Two years ago I painfully researched and built JMM Pragmatics talk and transcript, hoping it would highlight the particular dark corners of the Java Memory Models for those who cannot afford to spend years studying the formalisms, and deriving the actionable insights from them. JMM Pragmatics has helped many people, but there is still lots of confusion about what Memory Model guarantees, and what it does not.
In this post, we will try to follow up on particular misunderstandings about Java Memory Model, hopefully on the practical examples.