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

-Xlog:jfr* doesn't work with the JFR parser

    XMLWordPrintable

Details

    • jfr
    • b19

    Backports

      Description

        The JFR parser (ChunkParser.java) has been instrumented with log statement to debug parser issues, for instance, information about the chunk header or contents of the constant pool types.

        The functionality has however stopped working The reason is that the jdk.jfr.internal.JVM class has not been initialized, so the log levels are not registered in the VM.

        The dependency on the JVM class was removed from the jdk.jfr.internal.Logger so that files could be parsed on a JVM that doesn't support JFR. We should add back the dependency, but in case we get UnsatisfiedLinkError loading the JVM klass we should fall back to no logging.

        The workaround is to debug the parser and start a recording on command-line at the same time:

        java -Xlog:jfr+parser+system -XX:StartFlightRecording ..

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: