Fix race condition in AbstractEventStream.nextThreadName

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 17
    • Affects Version/s: 16, 17
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: