Speeple News Search

Sign Up! | Tags | Domains | Statistics | Options | Advanced Search

An improvement on the “Holder” thread-safety initialization idiom

blogs.sun.com » 2007 » September » 12th » An improvement on the “Holder” thread-safety initialization idiom

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 »


Latest news from BlogX:

  1. GlassFish startup time on Mac Pro 3GHz
  2. GlassFish build time on Mac Pro 3GHz
  3. Understanding thread-safe code
  4. Sun Ultra 20 dual-core Workstation
  5. MacBook Pro Core 2 Duo Shines on Glassfish build speed

Latest news from blogs.sun.com:

  1. Now Available: JavaFX 1.0!
  2. SNMP 1.6
  3. Java FX videos
  4. Immersive Education: Library Working Group Launch
  5. Police access to Parliament... the plot thickens