1 /*
   2 * Copyright (c) 2016, 2019, 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 package gc.stress.gcold;
  25 
  26 /*
  27  * @test TestGCOldWithShenandoah
  28  * @key gc
  29  * @key stress
  30  * @library /
  31  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  32  * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
  33  *
  34  * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  35  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  36  *      -XX:+ShenandoahDegeneratedGC -XX:+ShenandoahVerify
  37  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  38  *
  39  * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  40  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  41  *      -XX:-ShenandoahDegeneratedGC -XX:+ShenandoahVerify
  42  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  43  *
  44  * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  45  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  46  *      -XX:+ShenandoahDegeneratedGC
  47  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  48  *
  49  * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  50  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
  51  *      -XX:-ShenandoahDegeneratedGC
  52  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  53  */
  54 
  55 /*
  56  * @test TestGCOldWithShenandoah
  57  * @key gc
  58  * @key stress
  59  * @library /
  60  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  61  * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
  62  *
  63  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  64  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
  65  *      -XX:+ShenandoahOOMDuringEvacALot
  66  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  67  *
  68  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  69  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
  70  *      -XX:+ShenandoahAllocFailureALot
  71  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  72  *
  73  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  74  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
  75  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  76  *
  77  * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  78  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
  79  *      -XX:+ShenandoahVerify
  80  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  81  *
  82  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  83  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
  84  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  85  *
  86  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
  87  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
  88  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
  89  */
  90 
  91 /*
  92  * @test TestGCOldWithShenandoah
  93  * @key gc
  94  * @key stress
  95  * @library /
  96  * @requires vm.gc.Shenandoah & !vm.graal.enabled
  97  * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
  98  *
  99  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
 100  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
 101  *      -XX:+ShenandoahOOMDuringEvacALot
 102  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
 103  *
 104  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
 105  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
 106  *      -XX:+ShenandoahAllocFailureALot
 107  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
 108  *
 109  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
 110  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
 111  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
 112  *
 113  * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
 114  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
 115  *      -XX:+ShenandoahVerify
 116  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
 117  *
 118  * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
 119  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
 120  *      gc.stress.gcold.TestGCOld 50 1 20 10 10000
 121  */
 122 
 123 public class TestGCOldWithShenandoah {
 124 
 125     public static void main(String[] args) {
 126         TestGCOld.main(args);
 127     }
 128 }