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