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

JFR: Avoid unnecessary calls to Events.from(Recording)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 22
    • None
    • hotspot
    • None
    • jfr
    • b27

      JFR tests call Event.from(recording) to get the events from recording.

      Problem is that each call to Events.from(recording) dumps a recording file, inducing a JVM safepoint and executes parsing of the file. A better approach is to store the event in a List instead of calling it twice, or more.

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

              Created:
              Updated:
              Resolved: