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

Fix race condition in AbstractEventStream.nextThreadName

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 16, 17
    • hotspot
    • None
    • jfr
    • b05

      The result of AtomicLong.incrementAndGet() is used rather than
      incrementing the long and reading its value separately. The
      previous approach allowed for the static counter to be incremented
      several times before any caller read the value, resulting in
      several callers with the same value.

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: