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

SurfaceManager might expose partially constructed object

XMLWordPrintable

    • b11

        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

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

                Created:
                Updated:
                Resolved: