JFR: Copy of a closed recording should not be available

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: 11, 17, 21, 25, 27
    • Component/s: hotspot
    • None
    • jfr

      Reproducer:
      import module jdk.jfr;

      void main() {
          var r = new Recording();
          r.close();
          var fr = FlightRecorder.getFlightRecorder();
          System.out.println(fr.getRecordings().size());
          r.copy(false);
          System.out.println(fr.getRecordings().size());
      }

      Expected output is:
      0
      0

      Current output should be:
      0
      1

      FlightRecorder::getRecordings() should only return available recordings, not closed.

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

              Created:
              Updated: