< prev index next >

test/hotspot/jtreg/gc/z/TestUncommit.java

Print this page

        

*** 23,44 **** package gc.z; /* * @test TestUncommit ! * @requires vm.gc.Z & !vm.graal.enabled & vm.compMode != "Xcomp" * @summary Test ZGC uncommit unused memory * @run main/othervm -XX:+UseZGC -Xlog:gc*,gc+stats=off -Xms128M -Xmx512M -XX:ZUncommitDelay=10 gc.z.TestUncommit true 2 * @run main/othervm -XX:+UseZGC -Xlog:gc*,gc+stats=off -Xms512M -Xmx512M -XX:ZUncommitDelay=10 gc.z.TestUncommit false 1 * @run main/othervm -XX:+UseZGC -Xlog:gc*,gc+stats=off -Xms128M -Xmx512M -XX:ZUncommitDelay=10 -XX:-ZUncommit gc.z.TestUncommit false 1 */ - /* - * This test is disabled when running with -Xcomp, since it seems to affect - * the timing of the test, causing memory to appear to be uncommitted too fast. - */ - import java.util.ArrayList; public class TestUncommit { private static final int delay = 10; // seconds private static final int allocSize = 200 * 1024 * 1024; // 200M --- 23,39 ---- package gc.z; /* * @test TestUncommit ! * @requires vm.gc.Z & !vm.graal.enabled * @summary Test ZGC uncommit unused memory * @run main/othervm -XX:+UseZGC -Xlog:gc*,gc+stats=off -Xms128M -Xmx512M -XX:ZUncommitDelay=10 gc.z.TestUncommit true 2 * @run main/othervm -XX:+UseZGC -Xlog:gc*,gc+stats=off -Xms512M -Xmx512M -XX:ZUncommitDelay=10 gc.z.TestUncommit false 1 * @run main/othervm -XX:+UseZGC -Xlog:gc*,gc+stats=off -Xms128M -Xmx512M -XX:ZUncommitDelay=10 -XX:-ZUncommit gc.z.TestUncommit false 1 */ import java.util.ArrayList; public class TestUncommit { private static final int delay = 10; // seconds private static final int allocSize = 200 * 1024 * 1024; // 200M
< prev index next >