java-patterns icon indicating copy to clipboard operation
java-patterns copied to clipboard

Update RightLazySingleton.java

Open agent-smith opened this issue 10 years ago • 0 comments

Double-check locking makes this perform better, so we don't take on the overhead of context switching threads every time getInstance() is called.

agent-smith avatar Nov 18 '14 03:11 agent-smith