< prev index next >

test/hotspot/jtreg/gc/shenandoah/TestHeapUncommit.java

Print this page

  1 /*
  2  * Copyright (c) 2017, 2018, Red Hat, Inc. 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  *

 67  *      TestHeapUncommit
 68  *
 69  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 70  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
 71  *      TestHeapUncommit
 72  *
 73  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 74  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
 75  *      TestHeapUncommit
 76  *
 77  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 78  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
 79  *      TestHeapUncommit
 80  *
 81  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 82  *      -XX:+UseShenandoahGC
 83  *      -XX:-UseTLAB -XX:+ShenandoahVerify
 84  *      TestHeapUncommit
 85  */
 86 






















 87 /*
 88  * @test id=iu
 89  * @summary Acceptance tests: collector can withstand allocation
 90  * @key randomness
 91  * @requires vm.gc.Shenandoah
 92  * @library /test/lib
 93  *
 94  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 95  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
 96  *      -XX:+ShenandoahVerify
 97  *      TestHeapUncommit
 98  *
 99  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
100  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
101  *      TestHeapUncommit
102  *
103  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
104  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
105  *      TestHeapUncommit
106  */

  1 /*
  2  * Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
  3  * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
  4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  5  *
  6  * This code is free software; you can redistribute it and/or modify it
  7  * under the terms of the GNU General Public License version 2 only, as
  8  * published by the Free Software Foundation.
  9  *
 10  * This code is distributed in the hope that it will be useful, but WITHOUT
 11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 13  * version 2 for more details (a copy is included in the LICENSE file that
 14  * accompanied this code).
 15  *
 16  * You should have received a copy of the GNU General Public License version
 17  * 2 along with this work; if not, write to the Free Software Foundation,
 18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 19  *
 20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 21  * or visit www.oracle.com if you need additional information or have any
 22  * questions.
 23  *

 68  *      TestHeapUncommit
 69  *
 70  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 71  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
 72  *      TestHeapUncommit
 73  *
 74  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 75  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
 76  *      TestHeapUncommit
 77  *
 78  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 79  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
 80  *      TestHeapUncommit
 81  *
 82  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 83  *      -XX:+UseShenandoahGC
 84  *      -XX:-UseTLAB -XX:+ShenandoahVerify
 85  *      TestHeapUncommit
 86  */
 87 
 88 /*
 89  * @test id=generational
 90  * @summary Acceptance tests: collector can withstand allocation
 91  * @key randomness
 92  * @requires vm.gc.Shenandoah
 93  * @library /test/lib
 94  *
 95  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
 96  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
 97  *      -XX:+ShenandoahVerify
 98  *      TestHeapUncommit
 99  *
100  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
101  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
102  *      TestHeapUncommit
103  *
104  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
105  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
106  *      -XX:-UseTLAB -XX:+ShenandoahVerify
107  *      TestHeapUncommit
108  */
109 
110 /*
111  * @test id=iu
112  * @summary Acceptance tests: collector can withstand allocation
113  * @key randomness
114  * @requires vm.gc.Shenandoah
115  * @library /test/lib
116  *
117  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
118  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
119  *      -XX:+ShenandoahVerify
120  *      TestHeapUncommit
121  *
122  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
123  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
124  *      TestHeapUncommit
125  *
126  * @run main/othervm -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahUncommit -XX:ShenandoahUncommitDelay=0
127  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
128  *      TestHeapUncommit
129  */
< prev index next >