void () { <warning descr="Double-checked locking"><caret>if</warning> (n_instance == null) { // thread safe singleton synchronized (DoubleCheck.class) { if (n_instance == null) // doubly check { assignNonVolatile(6); } } } }