# HG changeset patch # User simonis # Date 1531329807 -7200 # Wed Jul 11 19:23:27 2018 +0200 # Node ID 19204536eedae1494bd76125dfcc7fa8f7889a03 # Parent fc6cfe40e32aa51eaf8d3db1fd5793e6f79b99cf 8207067: [test] prevent timeouts in serviceability/tmtools/jstat/{GcTest02,GcCauseTest02}.java Reviewed-by: dholmes, goetz diff --git a/test/hotspot/jtreg/serviceability/tmtools/jstat/GcCauseTest02.java b/test/hotspot/jtreg/serviceability/tmtools/jstat/GcCauseTest02.java --- a/test/hotspot/jtreg/serviceability/tmtools/jstat/GcCauseTest02.java +++ b/test/hotspot/jtreg/serviceability/tmtools/jstat/GcCauseTest02.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,13 +32,16 @@ * @modules java.base/jdk.internal.misc * @library /test/lib * @library ../share - * @run main/othervm -XX:+UsePerfData -XX:MaxNewSize=4m -XX:MaxHeapSize=128M -XX:MaxMetaspaceSize=128M GcCauseTest02 + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies + -XX:+UsePerfData -XX:MaxNewSize=4m -XX:MaxHeapSize=128M -XX:MaxMetaspaceSize=128M GcCauseTest02 */ import utils.*; public class GcCauseTest02 { public static void main(String[] args) throws Exception { + // This test produces more than 90_000 classes until it eats up ~70% of the 128M meta space. + // We turn off VerifyDependencies because it slows down the test considerably in debug builds. new GarbageProducerTest(new JstatGcCauseTool(ProcessHandle.current().pid())).run(); } } diff --git a/test/hotspot/jtreg/serviceability/tmtools/jstat/GcTest02.java b/test/hotspot/jtreg/serviceability/tmtools/jstat/GcTest02.java --- a/test/hotspot/jtreg/serviceability/tmtools/jstat/GcTest02.java +++ b/test/hotspot/jtreg/serviceability/tmtools/jstat/GcTest02.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -32,13 +32,16 @@ * @modules java.base/jdk.internal.misc * @library /test/lib * @library ../share - * @run main/othervm -XX:+UsePerfData -XX:MaxNewSize=4m -XX:MaxHeapSize=128M -XX:MaxMetaspaceSize=128M GcTest02 + * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies + -XX:+UsePerfData -XX:MaxNewSize=4m -XX:MaxHeapSize=128M -XX:MaxMetaspaceSize=128M GcTest02 */ import utils.*; public class GcTest02 { public static void main(String[] args) throws Exception { + // This test produces more than 90_000 classes until it eats up ~70% of the 128M meta space. + // We turn off VerifyDependencies because it slows down the test considerably in debug builds. new GarbageProducerTest(new JstatGcTool(ProcessHandle.current().pid())).run(); } }