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

CopyOnWriteArrayList.set(int, E) should always have volatile write semantics

XMLWordPrintable

      CopyOnWriteArrayList.set(int i, E element)
      has an optimization where is does nothing if the element at index i is
      already identical to element. This produces the correct result, but
      violates the promise that placing an element into a Concurrent collection
      has the effects of a volatile write. This could cause a violation of
      happens-before assumptions in some implementations.

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: