14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import jdk.test.lib.process.ProcessTools;
25 import jdk.test.lib.process.OutputAnalyzer;
26 import jdk.test.lib.cli.*;
27
28 /*
29 * @test
30 * @bug 8066821
31 * @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp.
32 * @modules java.base/jdk.internal.misc
33 * @library /test/lib
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 {"TLABStats", "false"},
48 {"AllowRedefinitionToAddDeleteMethods", "true"},
49 {"PrintVMQWaitTime", "true"},
50 {"UseNewFieldLayout", "true"},
51
52 // deprecated alias flags (see also aliased_jvm_flags):
53 {"DefaultMaxRAMFraction", "4"},
|
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import jdk.test.lib.process.ProcessTools;
25 import jdk.test.lib.process.OutputAnalyzer;
26 import jdk.test.lib.cli.*;
27
28 /*
29 * @test
30 * @bug 8066821
31 * @summary Test that various options are deprecated. See deprecated_jvm_flags in arguments.cpp.
32 * @modules java.base/jdk.internal.misc
33 * @library /test/lib
34 * @run driver VMDeprecatedOptions
35 */
36 public class VMDeprecatedOptions {
37
38 /**
39 * each entry is {[0]: option name, [1]: value to set
40 * (true/false/n/string)}.
41 */
42 public static final String[][] DEPRECATED_OPTIONS = {
43 // deprecated non-alias flags:
44 {"MaxGCMinorPauseMillis", "1032"},
45 {"MaxRAMFraction", "8"},
46 {"MinRAMFraction", "2"},
47 {"InitialRAMFraction", "64"},
48 {"TLABStats", "false"},
49 {"AllowRedefinitionToAddDeleteMethods", "true"},
50 {"PrintVMQWaitTime", "true"},
51 {"UseNewFieldLayout", "true"},
52
53 // deprecated alias flags (see also aliased_jvm_flags):
54 {"DefaultMaxRAMFraction", "4"},
|