Versions Compared

Key

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

...

Using incorrect forms of the double-checked locking idiom can lead to synchronization problems and can expose partially initialized objects.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

LCK10-J

Low

Probable

Medium

P4

L3

Automated Detection

Tool
Version
Checker
Description
CodeSonar4.2FB.MT_CORRECTNESS.DC_DOUBLECHECKPossible double check of field
Coverity7.5

DOUBLE_CHECK_LOCK
FB.DC_DOUBLECHECK

Implemented
Parasoft Jtest9.5TRS.DCLImplemented
SonarQube Java Plugin
Include Page
SonarQube Java Plugin_V
SonarQube Java Plugin_V
S2276 
S2168

Related Guidelines

MITRE CWE

CWE-609, Double-checked Locking

Bibliography

...



...