According to many, the somewhat common Double-Checked Locking idiom is broken for java unless you\'re running 1.5 or later and use the volatile keyword.
volatile
A b
The answer to this question implies that the memory models should be the same, and that the new double checked locking idiom will work.