test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
open Cdiff test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java
test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java
Print this page
*** 86,95 ****
--- 86,109 ----
output.shouldHaveExitValue(0);
String match = getDeprecationString(option);
output.shouldMatch(match);
}
+ // Deprecated experimental command line options need to be preceded on the
+ // command line by -XX:+UnlockExperimentalVMOption.
+ static void testDeprecatedExperimental(String option, String value) throws Throwable {
+ String XXoption = CommandLineOptionTest.prepareFlag(option, value);
+ ProcessBuilder processBuilder = ProcessTools.createJavaProcessBuilder(
+ CommandLineOptionTest.UNLOCK_EXPERIMENTAL_VM_OPTIONS, XXoption, "-version");
+ OutputAnalyzer output = new OutputAnalyzer(processBuilder.start());
+ // check for option deprecation message:
+ output.shouldHaveExitValue(0);
+ String match = getDeprecationString(option);
+ output.shouldMatch(match);
+ }
+
public static void main(String[] args) throws Throwable {
testDeprecated(DEPRECATED_OPTIONS); // Make sure that each deprecated option is mentioned in the output.
testDeprecatedDiagnostic("UnsyncloadClass", "false");
+ testDeprecatedExperimental("UseCGroupMemoryLimitForHeap", "true");
}
}
test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File