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.
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.
- causes
-
JDK-8353189 [ASAN] memory leak after 8352184
-
- Open
-
- relates to
-
JDK-8303796 Optionally build fully statically linked JDK image
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/79824c34
-
Review(master) openjdk/jdk/24171