1 /*
2 * Copyright (c) 2016, 2020, 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 */
124 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
125 */
126
127 /*
128 * @test id=iu
129 * @key stress randomness
130 * @library / /test/lib
131 * @requires vm.gc.Shenandoah
132 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
133 *
134 * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
135 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
136 * -XX:+ShenandoahVerify
137 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
138 *
139 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
140 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
141 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
142 */
143
144 public class TestGCOldWithShenandoah {
145
146 public static void main(String[] args) {
147 TestGCOld.main(args);
148 }
149 }
|
1 /*
2 * Copyright (c) 2016, 2020, Oracle and/or its affiliates. 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 */
125 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
126 */
127
128 /*
129 * @test id=iu
130 * @key stress randomness
131 * @library / /test/lib
132 * @requires vm.gc.Shenandoah
133 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
134 *
135 * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
136 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
137 * -XX:+ShenandoahVerify
138 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
139 *
140 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
141 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
142 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
143 */
144
145 /*
146 * @test id=generational
147 * @key stress randomness
148 * @library / /test/lib
149 * @requires vm.gc.Shenandoah
150 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
151 *
152 * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
153 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
154 * -XX:+ShenandoahVerify
155 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
156 *
157 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
158 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
159 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
160 */
161 public class TestGCOldWithShenandoah {
162
163 public static void main(String[] args) {
164 TestGCOld.main(args);
165 }
166 }
|