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 */
85 * -XX:+ShenandoahVerify
86 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
87 *
88 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
89 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
90 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
91 */
92
93 /*
94 * @test id=compact
95 * @key stress randomness
96 * @library / /test/lib
97 * @requires vm.gc.Shenandoah
98 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
99 *
100 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
101 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
102 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
103 */
104
105 public class TestGCOldWithShenandoah {
106
107 public static void main(String[] args) {
108 TestGCOld.main(args);
109 }
110 }
|
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 */
86 * -XX:+ShenandoahVerify
87 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
88 *
89 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
90 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
91 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
92 */
93
94 /*
95 * @test id=compact
96 * @key stress randomness
97 * @library / /test/lib
98 * @requires vm.gc.Shenandoah
99 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
100 *
101 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
102 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
103 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
104 */
105
106 /*
107 * @test id=generational
108 * @key stress randomness
109 * @library / /test/lib
110 * @requires vm.gc.Shenandoah
111 * @summary Stress the GC by trying to make old objects more likely to be garbage than young objects.
112 *
113 * @run main/othervm/timeout=600 -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
114 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
115 * -XX:+ShenandoahVerify
116 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
117 *
118 * @run main/othervm -Xmx384M -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
119 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational
120 * gc.stress.gcold.TestGCOld 50 1 20 10 10000
121 */
122 public class TestGCOldWithShenandoah {
123
124 public static void main(String[] args) {
125 TestGCOld.main(args);
126 }
127 }
|