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

nsk.share.jdi.Debugee.isJFR_active() is incorrect and corresponsing logic seems to be broken

XMLWordPrintable

    • b27

        Some jdi tests use less strict checks when JFR is used. It is checked with

            public boolean isJFR_active() {
                String opts = argumentHandler.getLaunchOptions();
                int jfrPos = opts.indexOf("-XX:+FlightRecorder");

                if (jfrPos >= 0)
                    return true;
                else
                    return false;
            }

        However, the JFR is always enabled but not started by default. The line which used to run tests with JFR is
        "-XX:StartFlightRecording=dumponexit=true,maxsize=500M -XX:FlightRecorderOptions=repository=jfrrep"
        So tests unaware of JFR threads. Also, the JDI with Graal as JIT should be broken in the same way.

        It is needed to investigate how it really works.

              fmatte Fairoz Matte
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: