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

JFR: At most one native periodic event thread at a time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 20
    • 11, 17
    • hotspot
    • jfr
    • b20

    Description

      Today two threads can call into JVM::emitEvent(long, long, long) at the same time. This can happen if a recording is started/stopped at the same time as a periodic event is emitted.

      It's unlikely they will emit the same event as start/stop triggers event with "beginChunk", "endChunk" or "everyChunk", while periodic events have an interval, for example "1 s". Still, they might access the same data structure, for example Performance Counters on Windows.

      There is no known issue because of this, but if if we see some strange intermittent failures go away, we may want to consider a backport to JDK 11 and JDK 17.

      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: