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

[TESTBUG] runtime/cds/appcds/CommandLineFlagCombo.java fails when jfr is disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b22

      Description

      * Reproduce
      ```
      bash configure --with-jvm-features=-jfr ...
      make test TEST="runtime/cds/appcds/CommandLineFlagCombo.java"
      ```

      * Symptom
      ```
      STDERR:
       stdout: [];
       stderr: [OpenJDK 64-Bit Server VM warning: Option FlightRecorder was deprecated in version 13.0 and will likely be removed in a future release.
      Unrecognized VM option 'FlightRecorder'
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      ]
      ```

      * Fix
      ```
      diff -r 5db99b3d6023 test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java
      --- a/test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java Tue Nov 05 18:42:10 2019 -0500
      +++ b/test/hotspot/jtreg/runtime/cds/appcds/CommandLineFlagCombo.java Wed Nov 06 10:30:45 2019 +0800
      @@ -24,7 +24,7 @@

       /*
        * @test CommandLineFlagCombo
      - * @requires vm.cds.archived.java.heap
      + * @requires vm.cds.archived.java.heap & vm.hasJFR
        * @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
        * via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
        * vm options.
      ```

        Attachments

          Activity

            People

            Assignee:
            jiefu Jie Fu
            Reporter:
            jiefu Jie Fu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: