22 * questions.
23 */
24
25 package gc.logging;
26
27 import java.io.File;
28 import java.net.URL;
29 import java.net.URLClassLoader;
30 import java.util.regex.Pattern;
31 import java.util.regex.Matcher;
32
33 import jdk.test.lib.Asserts;
34 import jdk.test.lib.process.OutputAnalyzer;
35 import jdk.test.lib.process.ProcessTools;
36 import sun.hotspot.WhiteBox;
37
38 /*
39 * @test TestMetaSpaceLog
40 * @bug 8211123
41 * @summary Ensure that the Metaspace is updated in the log
42 * @requires vm.gc=="null"
43 * @key gc
44 * @library /test/lib
45 * @modules java.base/jdk.internal.misc
46 * java.management
47 *
48 * @compile TestMetaSpaceLog.java
49 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
50 * @run main gc.logging.TestMetaSpaceLog
51 */
52
53 public class TestMetaSpaceLog {
54 private static Pattern metaSpaceRegexp;
55
56 static {
57 // Do this once here.
58 metaSpaceRegexp = Pattern.compile(".*Metaspace: ([0-9]+).*->([0-9]+).*");
59 }
60
61 public static void main(String[] args) throws Exception {
62 testMetaSpaceUpdate("UseParallelGC");
|
22 * questions.
23 */
24
25 package gc.logging;
26
27 import java.io.File;
28 import java.net.URL;
29 import java.net.URLClassLoader;
30 import java.util.regex.Pattern;
31 import java.util.regex.Matcher;
32
33 import jdk.test.lib.Asserts;
34 import jdk.test.lib.process.OutputAnalyzer;
35 import jdk.test.lib.process.ProcessTools;
36 import sun.hotspot.WhiteBox;
37
38 /*
39 * @test TestMetaSpaceLog
40 * @bug 8211123
41 * @summary Ensure that the Metaspace is updated in the log
42 * @requires vm.gc.Parallel & vm.gc.G1 & vm.gc.ConcMarkSweep & vm.gc.Serial
43 * @key gc
44 * @library /test/lib
45 * @modules java.base/jdk.internal.misc
46 * java.management
47 *
48 * @compile TestMetaSpaceLog.java
49 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
50 * @run main gc.logging.TestMetaSpaceLog
51 */
52
53 public class TestMetaSpaceLog {
54 private static Pattern metaSpaceRegexp;
55
56 static {
57 // Do this once here.
58 metaSpaceRegexp = Pattern.compile(".*Metaspace: ([0-9]+).*->([0-9]+).*");
59 }
60
61 public static void main(String[] args) throws Exception {
62 testMetaSpaceUpdate("UseParallelGC");
|