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

JFR: RemoteRecordingStream::start() blocks close()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      jfr
    • Resolved In Build:
      b16

      Description

      The method jdk.management.jfr.RemoteRecordingStream::start() takas a lock that is needed to close the stream. This means the stream can't be shutdown from another thread. This doesn't happen with startAsync() as the method returns after the stream has started,

      This is a regression introduced with "8263332: JFR: Dump recording from a recording stream" and should be backported to JDK 17. Technically it doesn't break the specification, but it's expected behavior, and should work like JDK 16.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: