1 /* 2 * Copyright (c) 2016, 2018, Red Hat, Inc. All rights reserved. 3 * 4 * This code is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License version 2 only, as 6 * published by the Free Software Foundation. 7 * 8 * This code is distributed in the hope that it will be useful, but WITHOUT 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 11 * version 2 for more details (a copy is included in the LICENSE file that 12 * accompanied this code). 13 * 14 * You should have received a copy of the GNU General Public License version 15 * 2 along with this work; if not, write to the Free Software Foundation, 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 17 * 18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * or visit www.oracle.com if you need additional information or have any 20 * questions. 21 * 22 */ 23 24 import java.io.IOException; 25 26 /* 27 * @test TestGCBasherWithShenandoah 28 * @key gc 29 * @key stress 30 * @requires vm.gc.Shenandoah & !vm.graal.enabled 31 * @requires vm.flavor == "server" & !vm.emulatedClient & !vm.graal.enabled 32 * @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects. 33 * 34 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 35 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive 36 * -XX:+ShenandoahVerify -XX:+ShenandoahDegeneratedGC 37 * TestGCBasherWithShenandoah 120000 38 * 39 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 40 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive 41 * -XX:+ShenandoahVerify -XX:-ShenandoahDegeneratedGC 42 * TestGCBasherWithShenandoah 120000 43 */ 44 45 /* 46 * @test TestGCBasherWithShenandoah 47 * @key gc 48 * @key stress 49 * @library / 50 * @requires vm.gc.Shenandoah & !vm.graal.enabled 51 * @requires vm.flavor == "server" & !vm.emulatedClient & !vm.graal.enabled 52 * @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects. 53 * 54 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 55 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive 56 * -XX:+ShenandoahOOMDuringEvacALot 57 * TestGCBasherWithShenandoah 120000 58 * 59 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 60 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive 61 * -XX:+ShenandoahAllocFailureALot 62 * TestGCBasherWithShenandoah 120000 63 * 64 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 65 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive 66 * TestGCBasherWithShenandoah 120000 67 */ 68 69 /* 70 * @test TestGCBasherWithShenandoah 71 * @key gc 72 * @key stress 73 * @library / 74 * @requires vm.gc.Shenandoah & !vm.graal.enabled 75 * @requires vm.flavor == "server" & !vm.emulatedClient & !vm.graal.enabled 76 * @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects. 77 * 78 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 79 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive 80 * -XX:+ShenandoahVerify 81 * TestGCBasherWithShenandoah 120000 82 * 83 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 84 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive 85 * TestGCBasherWithShenandoah 120000 86 * 87 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 88 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact 89 * TestGCBasherWithShenandoah 120000 90 */ 91 92 /* 93 * @test TestGCBasherWithShenandoah 94 * @key gc 95 * @key stress 96 * @library / 97 * @requires vm.gc.Shenandoah & !vm.graal.enabled 98 * @requires vm.flavor == "server" & !vm.emulatedClient & !vm.graal.enabled 99 * @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects. 100 * 101 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 102 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive 103 * -XX:+ShenandoahOOMDuringEvacALot 104 * TestGCBasherWithShenandoah 120000 105 * 106 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 107 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive 108 * -XX:+ShenandoahAllocFailureALot 109 * TestGCBasherWithShenandoah 120000 110 * 111 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 112 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive 113 * TestGCBasherWithShenandoah 120000 114 */ 115 116 /* 117 * @test TestGCBasherWithShenandoah 118 * @key gc 119 * @key stress 120 * @library / 121 * @requires vm.gc.Shenandoah & !vm.graal.enabled 122 * @requires vm.flavor == "server" & !vm.emulatedClient & !vm.graal.enabled 123 * @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects. 124 * 125 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 126 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal 127 * -XX:+ShenandoahVerify 128 * TestGCBasherWithShenandoah 120000 129 * 130 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions 131 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal 132 * TestGCBasherWithShenandoah 120000 133 */ 134 public class TestGCBasherWithShenandoah { 135 public static void main(String[] args) throws IOException { 136 TestGCBasher.main(args); 137 } 138 }