Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.1
-
None
Description
Old code foolishly used an "if (instance == null) instance = createInstance()" which is not thread safe – my bad .
Current code now uses Atomics and Futures to guarantee only one thread will win the right to lazily construct the singleton.