# HG changeset patch # User pliden # Date 1460098305 -7200 # Node ID 303d15f45adf86681892a224952075c52009b170 # Parent f8fd0bcc60af3a0295970318f22211de4dced248 8152989: serviceability/tmtools/jstat/GcCauseTest02.java fails with OOME Reviewed-by: dsamersoff, sjohanss, dfazunen diff -r f8fd0bcc60af -r 303d15f45adf hotspot/test/serviceability/tmtools/jstat/GcCapacityTest.java --- a/hotspot/test/serviceability/tmtools/jstat/GcCapacityTest.java Thu Apr 07 15:34:21 2016 -0700 +++ b/hotspot/test/serviceability/tmtools/jstat/GcCapacityTest.java Fri Apr 08 08:51:45 2016 +0200 @@ -27,13 +27,13 @@ * @test * @summary Test checks the consistency of the output * displayed with jstat -gccapacity. - * @ignore 8149778 * @library /test/lib/share/classes * @library ../share * @requires vm.opt.ExplicitGCInvokesConcurrent != true * @build common.* * @build utils.* - * @run main/othervm -XX:+UsePerfData GcCapacityTest + * @ignore 8149778 + * @run main/othervm -XX:+UsePerfData -Xmx128M GcCapacityTest */ public class GcCapacityTest { diff -r f8fd0bcc60af -r 303d15f45adf hotspot/test/serviceability/tmtools/jstat/GcCauseTest01.java --- a/hotspot/test/serviceability/tmtools/jstat/GcCauseTest01.java Thu Apr 07 15:34:21 2016 -0700 +++ b/hotspot/test/serviceability/tmtools/jstat/GcCauseTest01.java Fri Apr 08 08:51:45 2016 +0200 @@ -34,7 +34,7 @@ * @build common.* * @build utils.* * - * @run main/othervm -XX:+UsePerfData GcCauseTest01 + * @run main/othervm -XX:+UsePerfData -Xmx128M GcCauseTest01 */ import utils.*; diff -r f8fd0bcc60af -r 303d15f45adf hotspot/test/serviceability/tmtools/jstat/GcCauseTest02.java --- a/hotspot/test/serviceability/tmtools/jstat/GcCauseTest02.java Thu Apr 07 15:34:21 2016 -0700 +++ b/hotspot/test/serviceability/tmtools/jstat/GcCauseTest02.java Fri Apr 08 08:51:45 2016 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2016, 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,7 +32,7 @@ * @build common.* * @build utils.* * - * @run main/othervm -XX:+UsePerfData -Xms128M -XX:MaxMetaspaceSize=128M GcCauseTest02 + * @run main/othervm -XX:+UsePerfData -Xmx128M -XX:MaxMetaspaceSize=128M GcCauseTest02 */ import utils.*; diff -r f8fd0bcc60af -r 303d15f45adf hotspot/test/serviceability/tmtools/jstat/GcCauseTest03.java --- a/hotspot/test/serviceability/tmtools/jstat/GcCauseTest03.java Thu Apr 07 15:34:21 2016 -0700 +++ b/hotspot/test/serviceability/tmtools/jstat/GcCauseTest03.java Fri Apr 08 08:51:45 2016 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2016, 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,7 +32,7 @@ * @build common.* * @build utils.* * - * @run main/othervm -XX:+UsePerfData -Xms128M -XX:MaxMetaspaceSize=128M GcCauseTest03 + * @run main/othervm -XX:+UsePerfData -Xmx128M -XX:MaxMetaspaceSize=128M GcCauseTest03 */ import utils.*; diff -r f8fd0bcc60af -r 303d15f45adf hotspot/test/serviceability/tmtools/jstat/GcNewTest.java --- a/hotspot/test/serviceability/tmtools/jstat/GcNewTest.java Thu Apr 07 15:34:21 2016 -0700 +++ b/hotspot/test/serviceability/tmtools/jstat/GcNewTest.java Fri Apr 08 08:51:45 2016 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2016, 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 @@ -33,7 +33,7 @@ * @library ../share * @build common.* * @build utils.* - * @run main/othervm -XX:+UsePerfData GcNewTest + * @run main/othervm -XX:+UsePerfData -Xmx128M GcNewTest */ public class GcNewTest { diff -r f8fd0bcc60af -r 303d15f45adf hotspot/test/serviceability/tmtools/jstat/GcTest01.java --- a/hotspot/test/serviceability/tmtools/jstat/GcTest01.java Thu Apr 07 15:34:21 2016 -0700 +++ b/hotspot/test/serviceability/tmtools/jstat/GcTest01.java Fri Apr 08 08:51:45 2016 +0200 @@ -37,7 +37,7 @@ * @build common.* * @build utils.* * - * @run main/othervm -XX:+UsePerfData GcTest01 + * @run main/othervm -XX:+UsePerfData -Xmx128M GcTest01 */ import utils.*; diff -r f8fd0bcc60af -r 303d15f45adf hotspot/test/serviceability/tmtools/jstat/GcTest02.java --- a/hotspot/test/serviceability/tmtools/jstat/GcTest02.java Thu Apr 07 15:34:21 2016 -0700 +++ b/hotspot/test/serviceability/tmtools/jstat/GcTest02.java Fri Apr 08 08:51:45 2016 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2016, 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,7 +32,7 @@ * @library ../share * @build common.* * @build utils.* - * @run main/othervm -XX:+UsePerfData -Xms128M -XX:MaxMetaspaceSize=128M GcTest02 + * @run main/othervm -XX:+UsePerfData -Xmx128M -XX:MaxMetaspaceSize=128M GcTest02 */ public class GcTest02 { @@ -58,10 +58,4 @@ // Assert that space has been utilized acordingly JstatResults.assertSpaceUtilization(measurement2, targetMemoryUsagePercent); } - - private static void assertThat(boolean result, String message) { - if (!result) { - throw new RuntimeException(message); - }; - } }