Uploaded image for project: 'Stanbol'
  1. Stanbol
  2. STANBOL-1473

Avoid Double-checked Locking

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: Build
    • Labels:
      None

      Description

      Using double-checked locking for the lazy initialization of any other type of primitive or mutable object risks a second thread using an uninitialized or partially initialized member while the first thread is still creating it, and crashing the program.

        Attachments

          Activity

            People

            • Assignee:
              rafaharo Rafa Haro
              Reporter:
              kamaci Furkan Kamaci
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: