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

jfr.dcmd log is not shown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 12
    • 11, 12
    • hotspot
    • None
    • jfr
    • 11

      Arguments which are passed to -XX:StartFlightRecording are not shown in spite of -Xlog:jfr+dcmd=debug is passed.

      jfr.dcmd log will be shown from DCmdStart::execute, but I think it has two problems:

        1. Log level will be not set before showing log.
           LogTag::tagSetLevel is used to decide to show the log. But it will be set
           in JNI code which is called by JVM::<clinit>. JVM class is not loaded
           when DCmdStart::execute tries to show log.

        2. `settings` might be null, so NPE will occur when DCmdStart::execute
            tries to show log.

            ysuenaga Yasumasa Suenaga
            ysuenaga Yasumasa Suenaga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: