I was reading an essay, which actually talks about double-checked locking, but I\'m surprised about an even more basic failure in the code presented as examples. It is state
Instance initialization reordering by JIT compiler IS possible even under x86. However, it is somewhat tricky to write code that can trigger such reordering. On how to reproduce such reordering, see my question:
Is there any instruction reordering done by the Hotspot JIT compiler that can be reproduced?