![]() |
Sign Up! | Tags | Domains | Statistics | Options | Advanced Search |
Tagged: sun
I’ve been finding many thread-safety issues in the GlassFish source base in the past several months, mostly in the admin code. Many of them involve singleton objects, typically obtained via a getInstance() method. If loading of the class implies immediate use of its singleton instance, and it doesn’t require any arguments to be created, the most efficient (and thread-safe) approach is simply to … Continue Reading »