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

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

XMLWordPrintable

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

      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.

      This is very likely the solution for the "exitValue = -1073741819" error when using JFR on Windows, so we may want to consider a backport to JDK 11 and JDK 17.

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

              Created:
              Updated:
              Resolved: