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

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: