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

Fix race condition in AbstractEventStream.nextThreadName

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: