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

race condition in CopyOnWriteArrayList.equals

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • b53
    • generic
    • generic
    • Verified

      Methods of CopyOnWriteArrayList guarantee safety under concurrency by
      always operating on snapshots. But equals() calls size(), then takes a snapshot,
      creating an obvious race.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: