Double-checked locking: Why doesn’t it work and how to fix it Double-checked locking is notoriously evil. While it can be a boon to efficiency, it’s tricky to do correctly. Lurking at its core are two issues