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 *
250 /*
251 * @test id=iu-deopt-nmethod
252 * @key stress
253 * @library /
254 * @requires vm.gc.Shenandoah
255 * @requires vm.flavor == "server" & !vm.emulatedClient & vm.opt.ClassUnloading != false
256 * @summary Stress Shenandoah GC with nmethod barrier forced deoptimization enabled.
257 *
258 * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
259 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
260 * -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
261 * -XX:+ShenandoahVerify
262 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
263 *
264 * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
265 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
266 * -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
267 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
268 */
269
270
271 public class TestGCBasherWithShenandoah {
272 public static void main(String[] args) throws IOException {
273 TestGCBasher.main(args);
274 }
275 }
|
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 *
251 /*
252 * @test id=iu-deopt-nmethod
253 * @key stress
254 * @library /
255 * @requires vm.gc.Shenandoah
256 * @requires vm.flavor == "server" & !vm.emulatedClient & vm.opt.ClassUnloading != false
257 * @summary Stress Shenandoah GC with nmethod barrier forced deoptimization enabled.
258 *
259 * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
260 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
261 * -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
262 * -XX:+ShenandoahVerify
263 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
264 *
265 * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
266 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
267 * -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
268 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
269 */
270
271 /*
272 * @test id=generational
273 * @key stress
274 * @library /
275 * @requires vm.gc.Shenandoah
276 * @requires vm.flavor == "server" & !vm.emulatedClient
277 * @summary Stress the Shenandoah GC by trying to make old objects more likely to be garbage than young objects.
278 *
279 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
280 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
281 * -XX:+ShenandoahVerify
282 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
283 *
284 * @run main/othervm/timeout=200 -Xlog:gc*=info -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
285 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
286 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
287 */
288
289 /*
290 * @test id=generational-deopt-nmethod
291 * @key stress
292 * @library /
293 * @requires vm.gc.Shenandoah
294 * @requires vm.flavor == "server" & !vm.emulatedClient & vm.opt.ClassUnloading != false
295 * @summary Stress Shenandoah GC with nmethod barrier forced deoptimization enabled.
296 *
297 * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
298 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
299 * -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
300 * -XX:+ShenandoahVerify
301 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
302 *
303 * @run main/othervm/timeout=200 -Xlog:gc*=info,nmethod+barrier=trace -Xmx1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
304 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
305 * -XX:+DeoptimizeNMethodBarriersALot -XX:-Inline
306 * gc.stress.gcbasher.TestGCBasherWithShenandoah 120000
307 */
308
309 public class TestGCBasherWithShenandoah {
310 public static void main(String[] args) throws IOException {
311 TestGCBasher.main(args);
312 }
313 }
|