Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8302849

SurfaceManager might expose partially constructed object

    XMLWordPrintable

Details

    • b11

    Backports

      Description

        SurfaceManager is using a lazily initialized cacheMap that is initialized using a double-checked locking mechanism. Generally, objects initialized using such constructs need to be declared volatile.

        See https://en.wikipedia.org/wiki/Double-checked_locking#Usage_in_Java

        Attachments

          Issue Links

            Activity

              People

                pminborg Per-Ake Minborg
                pminborg Per-Ake Minborg
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: