test/hotspot/jtreg/gc/shenandoah/TestLotsOfCycles.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54777 206afa6372ae
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
    24 /*
    24 /*
    25  * @test TestLotsOfCycles
    25  * @test TestLotsOfCycles
    26  * @key gc
    26  * @key gc
    27  * @requires vm.gc.Shenandoah & !vm.graal.enabled
    27  * @requires vm.gc.Shenandoah & !vm.graal.enabled
    28  *
    28  *
    29  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=passive      -Dtarget=10000 -XX:+ShenandoahDegeneratedGC     TestLotsOfCycles
    29  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
    30  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=passive      -Dtarget=10000 -XX:-ShenandoahDegeneratedGC     TestLotsOfCycles
    30  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
       
    31  *      -XX:+ShenandoahDegeneratedGC
       
    32  *      -Dtarget=10000
       
    33  *      TestLotsOfCycles
    31  *
    34  *
    32  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=aggressive   -Dtarget=1000  -XX:+ShenandoahOOMDuringEvacALot TestLotsOfCycles
    35  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
    33  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=aggressive   -Dtarget=1000  -XX:+ShenandoahAllocFailureALot  TestLotsOfCycles
    36  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
    34  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=aggressive   -Dtarget=1000                                   TestLotsOfCycles
    37  *      -XX:-ShenandoahDegeneratedGC
       
    38  *      -Dtarget=10000
       
    39  *      TestLotsOfCycles
       
    40  */
       
    41 
       
    42 /*
       
    43  * @test TestLotsOfCycles
       
    44  * @key gc
       
    45  * @requires vm.gc.Shenandoah & !vm.graal.enabled
    35  *
    46  *
    36  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=adaptive     -Dtarget=10000 TestLotsOfCycles
    47  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
    37  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=traversal    -Dtarget=10000 TestLotsOfCycles
    48  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
       
    49  *      -XX:+ShenandoahOOMDuringEvacALot
       
    50  *      -Dtarget=1000
       
    51  *      TestLotsOfCycles
    38  *
    52  *
    39  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=static       -Dtarget=10000 TestLotsOfCycles
    53  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
    40  * @run main/othervm/timeout=480 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx16m -XX:ShenandoahGCHeuristics=compact      -Dtarget=1000  TestLotsOfCycles
    54  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
       
    55  *      -XX:+ShenandoahAllocFailureALot
       
    56  *      -Dtarget=1000
       
    57  *      TestLotsOfCycles
       
    58  *
       
    59  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
    60  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
       
    61  *      -Dtarget=1000
       
    62  *      TestLotsOfCycles
       
    63  *
       
    64  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
    65  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
       
    66  *      -Dtarget=10000
       
    67  *      TestLotsOfCycles
       
    68  *
       
    69  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
    70  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
       
    71  *      -Dtarget=10000
       
    72  *      TestLotsOfCycles
       
    73  *
       
    74  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
    75  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
       
    76  *      -Dtarget=1000
       
    77  *     TestLotsOfCycles
       
    78  */
       
    79 
       
    80 /*
       
    81  * @test TestLotsOfCycles
       
    82  * @key gc
       
    83  * @requires vm.gc.Shenandoah & !vm.graal.enabled
       
    84  *
       
    85  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
    86  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive
       
    87  *      -XX:+ShenandoahOOMDuringEvacALot
       
    88  *      -Dtarget=1000
       
    89  *      TestLotsOfCycles
       
    90  *
       
    91  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
    92  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive
       
    93  *      -XX:+ShenandoahAllocFailureALot
       
    94  *      -Dtarget=1000
       
    95  *      TestLotsOfCycles
       
    96  *
       
    97  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
    98  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive
       
    99  *      -Dtarget=1000
       
   100  *      TestLotsOfCycles
       
   101  *
       
   102  * @run main/othervm/timeout=480 -Xmx16m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
       
   103  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal
       
   104  *      -Dtarget=10000
       
   105  *      TestLotsOfCycles
    41  */
   106  */
    42 
   107 
    43 public class TestLotsOfCycles {
   108 public class TestLotsOfCycles {
    44 
   109 
    45     static final long TARGET_MB = Long.getLong("target", 10_000); // 10 Gb allocation, around 1K cycles to handle
   110     static final long TARGET_MB = Long.getLong("target", 10_000); // 10 Gb allocation, around 1K cycles to handle