< prev index next >

test/hotspot/jtreg/gc/stress/gcbasher/TestGCBasherWithShenandoah.java

Print this page

  1 /*
  2  * Copyright (c) 2016, 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  *

162  *
163  * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
164  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
165  *      -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
166  *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
167  */
168 
169 /*
170  * @test id=compact-deopt-nmethod
171  * @key stress
172  * @library /
173  * @requires vm.gc.Shenandoah
174  * @requires vm.flavor == "server" & !vm.emulatedClient & vm.opt.ClassUnloading != false
175  * @summary Stress Shenandoah GC with nmethod barrier forced deoptimization enabled.
176  *
177  * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
178  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
179  *      -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
180  *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
181  */





































182 
183 public class TestGCBasherWithShenandoah {
184     public static void main(String[] args) throws IOException {
185         TestGCBasher.main(args);
186     }
187 }

  1 /*
  2  * Copyright (c) 2016, 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  *

163  *
164  * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
165  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
166  *      -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
167  *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
168  */
169 
170 /*
171  * @test id=compact-deopt-nmethod
172  * @key stress
173  * @library /
174  * @requires vm.gc.Shenandoah
175  * @requires vm.flavor == "server" & !vm.emulatedClient & vm.opt.ClassUnloading != false
176  * @summary Stress Shenandoah GC with nmethod barrier forced deoptimization enabled.
177  *
178  * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
179  *      -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
180  *      -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
181  *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
182  */
183 /*
184  * @test id=generational
185  * @key stress
186  * @library /
187  * @requires vm.gc.Shenandoah
188  * @requires vm.flavor == "server" & !vm.emulatedClient
189  * @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects.
190  *
191  * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
192  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
193  *      -XX:+ShenandoahVerify
194  *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
195  *
196  * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
197  *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
198  *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
199  */
200 
201  /*
202   * @test id=generational-deopt-nmethod
203   * @key stress
204   * @library /
205   * @requires vm.gc.Shenandoah
206   * @requires vm.flavor == "server" & !vm.emulatedClient & vm.opt.ClassUnloading != false
207   * @summary Stress Shenandoah GC with nmethod barrier forced deoptimization enabled.
208   *
209   * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
210   *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
211   *      -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
212   *      -XX:+ShenandoahVerify
213   *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
214   *
215   * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
216   *      -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
217   *      -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
218   *      gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
219   */
220 
221 public class TestGCBasherWithShenandoah {
222     public static void main(String[] args) throws IOException {
223         TestGCBasher.main(args);
224     }
225 }
< prev index next >