test/hotspot/jtreg/serviceability/tmtools/jstat/GcNewTest.java
changeset 52925 9c18c9d839d3
parent 50525 767cdb97f103
equal deleted inserted replaced
52924:420ff459906f 52925:9c18c9d839d3
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, 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.
    27  * @summary Test checks output displayed with jstat -gcnew.
    27  * @summary Test checks output displayed with jstat -gcnew.
    28  *          Test scenario:
    28  *          Test scenario:
    29  *          test several times provokes garbage collection in the debuggee application and after each garbage
    29  *          test several times provokes garbage collection in the debuggee application and after each garbage
    30  *          collection runs jstat. jstat should show that after garbage collection number of GC events and garbage
    30  *          collection runs jstat. jstat should show that after garbage collection number of GC events and garbage
    31  *          collection time increase.
    31  *          collection time increase.
    32  * @requires vm.gc != "Z"
    32  * @requires vm.gc != "Z" & vm.gc != "Shenandoah"
    33  * @modules java.base/jdk.internal.misc
    33  * @modules java.base/jdk.internal.misc
    34  * @library /test/lib
    34  * @library /test/lib
    35  * @library ../share
    35  * @library ../share
    36  * @run main/othervm -XX:+UsePerfData -Xmx128M GcNewTest
    36  * @run main/othervm -XX:+UsePerfData -Xmx128M GcNewTest
    37  */
    37  */