1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 * @test TestSmallInitialHeapWithLargePageAndNUMA |
25 * @test TestSmallInitialHeapWithLargePageAndNUMA |
26 * @bug 8023905 |
26 * @bug 8023905 |
27 * @requires os.family == "linux" |
27 * @requires os.family == "linux" |
28 * @requires vm.gc.Parallel |
28 * @requires vm.gc.Parallel |
29 * @summary Check large pages and NUMA are working together via the output message. |
29 * @summary Check large pages and NUMA are working together via the output message. |
30 * @library /testlibrary /test/lib /test/lib/share/classes |
30 * @library /test/lib |
31 * @modules java.base/jdk.internal.misc |
31 * @modules java.base/jdk.internal.misc |
32 * @modules java.management/sun.management |
32 * @modules java.management/sun.management |
33 * @build TestSmallInitialHeapWithLargePageAndNUMA |
33 * @build TestSmallInitialHeapWithLargePageAndNUMA |
34 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
34 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
35 * @run main/othervm -Xbootclasspath/a:. -XX:+UseHugeTLBFS -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI TestSmallInitialHeapWithLargePageAndNUMA |
35 * @run main/othervm -Xbootclasspath/a:. -XX:+UseHugeTLBFS -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI TestSmallInitialHeapWithLargePageAndNUMA |
36 */ |
36 */ |
37 |
37 |
38 import jdk.test.lib.ProcessTools; |
38 import jdk.test.lib.process.ProcessTools; |
39 import jdk.test.lib.OutputAnalyzer; |
39 import jdk.test.lib.process.OutputAnalyzer; |
40 import sun.hotspot.WhiteBox; |
40 import sun.hotspot.WhiteBox; |
41 |
41 |
42 public class TestSmallInitialHeapWithLargePageAndNUMA { |
42 public class TestSmallInitialHeapWithLargePageAndNUMA { |
43 |
43 |
44 private static final String MSG_EXIT_TOO_SMALL_HEAP = "Failed initializing NUMA with large pages. Too small heap size"; |
44 private static final String MSG_EXIT_TOO_SMALL_HEAP = "Failed initializing NUMA with large pages. Too small heap size"; |