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

CopyOnWriteArrayList bulk operations have race conditions

XMLWordPrintable

      A number of methods of CopyOnWriteArrayList take other collections as arguments.
      They assume that those collections are not being concurrently mutated.
      In particular, they trust that the size() of the other collection is invariant.
      This means, in particular, that "binary" operations on pairs of CopyOnWriteArrayLists
      are unsafe.

      This is one part of the fix for
      6347106: (coll) methods taking concurrently modified collection arguments fail sporadically
      If all you have is a Collection, then both size() and iteration are unsafe!

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: