Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The double-checked locking pattern uses block synchronization rather than method synchronization and installs an additional null reference check before attempting synchronization. This noncompliant code example uses the an incorrect form of the double-checked locking idiom.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5725ae9d26294b9b-b493a118-45a24c9f-a3259bfd-5eeef4ed20337c7dc806f966"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 06]]

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a545d301c58a4362-0517e827-4eb14f49-8bdb9c94-2d01684803c775a3ac12a91d"><ac:plain-text-body><![CDATA[

[[Bloch 2001

AA. Bibliography#Bloch 01]]

Item 48. Synchronize access to shared mutable data

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="472aaa43e2fae6e7-72b1762d-427843d1-975dab77-449b0ae6ad8fb9bc302931a6"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. Bibliography#Bloch 08]]

Item 71. Use lazy initialization judiciously]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="479275c43a84962c-8e98f49e-497642a7-b0e59200-a42356e1f7c53eba70427cc6"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

§12.4, Initialization of Classes and Interfaces

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a7a6d02d5f934874-e4699ebe-4e364f64-bf20aade-d55060f754fc7f84218e9936"><ac:plain-text-body><![CDATA[

[[Pugh 2004

AA. Bibliography#Pugh 04]]

 

]]></ac:plain-text-body></ac:structured-macro>

...