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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • hotspot
    • None
    • master

      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.

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

              Created:
              Updated:
              Resolved: