34 */
35 public class VMDeprecatedOptions {
36
37 /**
38 * each entry is {[0]: option name, [1]: value to set
39 * (true/false/n/string)}.
40 */
41 public static final String[][] DEPRECATED_OPTIONS = {
42 // deprecated non-alias flags:
43 {"MaxGCMinorPauseMillis", "1032"},
44 {"MaxRAMFraction", "8"},
45 {"MinRAMFraction", "2"},
46 {"InitialRAMFraction", "64"},
47 {"AssumeMP", "false"},
48 {"UseMembar", "true"},
49 {"CompilerThreadHintNoPreempt", "true"},
50 {"VMThreadHintNoPreempt", "false"},
51 {"PrintSafepointStatistics", "false"},
52 {"PrintSafepointStatisticsCount", "3"},
53 {"PrintSafepointStatisticsTimeout", "3"},
54
55 // deprecated alias flags (see also aliased_jvm_flags):
56 {"DefaultMaxRAMFraction", "4"},
57 {"CreateMinidumpOnCrash", "false"}
58 };
59
60 static String getDeprecationString(String optionName) {
61 return "Option " + optionName
62 + " was deprecated in version [\\S]+ and will likely be removed in a future release";
63 }
64
65 static void testDeprecated(String[][] optionInfo) throws Throwable {
66 String optionNames[] = new String[optionInfo.length];
67 String expectedValues[] = new String[optionInfo.length];
68 for (int i = 0; i < optionInfo.length; i++) {
69 optionNames[i] = optionInfo[i][0];
70 expectedValues[i] = optionInfo[i][1];
71 }
72
73 OutputAnalyzer output = CommandLineOptionTest.startVMWithOptions(optionNames, expectedValues);
|
34 */
35 public class VMDeprecatedOptions {
36
37 /**
38 * each entry is {[0]: option name, [1]: value to set
39 * (true/false/n/string)}.
40 */
41 public static final String[][] DEPRECATED_OPTIONS = {
42 // deprecated non-alias flags:
43 {"MaxGCMinorPauseMillis", "1032"},
44 {"MaxRAMFraction", "8"},
45 {"MinRAMFraction", "2"},
46 {"InitialRAMFraction", "64"},
47 {"AssumeMP", "false"},
48 {"UseMembar", "true"},
49 {"CompilerThreadHintNoPreempt", "true"},
50 {"VMThreadHintNoPreempt", "false"},
51 {"PrintSafepointStatistics", "false"},
52 {"PrintSafepointStatisticsCount", "3"},
53 {"PrintSafepointStatisticsTimeout", "3"},
54 {"AggressiveOpts", "true"},
55
56 // deprecated alias flags (see also aliased_jvm_flags):
57 {"DefaultMaxRAMFraction", "4"},
58 {"CreateMinidumpOnCrash", "false"}
59 };
60
61 static String getDeprecationString(String optionName) {
62 return "Option " + optionName
63 + " was deprecated in version [\\S]+ and will likely be removed in a future release";
64 }
65
66 static void testDeprecated(String[][] optionInfo) throws Throwable {
67 String optionNames[] = new String[optionInfo.length];
68 String expectedValues[] = new String[optionInfo.length];
69 for (int i = 0; i < optionInfo.length; i++) {
70 optionNames[i] = optionInfo[i][0];
71 expectedValues[i] = optionInfo[i][1];
72 }
73
74 OutputAnalyzer output = CommandLineOptionTest.startVMWithOptions(optionNames, expectedValues);
|