Jtreg tests using CommandLineOptionTest.getVMTypeOption() and optionsvalidation.JVMOptionsUtils fail on static JDK

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: hotspot
    • None
    • b17

      jdk.test.lib.cli.CommandLineOptionTest.getVMTypeOption() (https://github.com/openjdk/jdk/blob/19154f7af34bf6f13d61d7a9f05d6277964845d8/test/lib/jdk/test/lib/cli/CommandLineOptionTest.java#L495) is used for adding '-server|-client|-minimal|-zero' command-line option based on the current running VM type. On static JDK, tests using CommandLineOptionTest.getVMTypeOption() fail as '-server|-client|-minimal|-zero' flags are not recognized on static JDK. See JDK-8350982 for related info.

      E.g. compiler/codecache/cli/TestSegmentedCodeCacheOption.java currently fails on static JDK due to this issue. TestSegmentedCodeCacheOption calls CommandLineOptionTest.verifySameJVMStartup(), which uses getVMTypeOption() and adds '-server|-client|-minimal|-zero' flag.

            Assignee:
            Jiangli Zhou
            Reporter:
            Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: