1 /*
2 * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
3 * Copyright (c) 2016, 2018, Red Hat, Inc. 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 *
77 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
78 * -XX:+ShenandoahAllocFailureALot
79 * TestAllocHumongousFragment
80 */
81
82 /*
83 * @test id=adaptive
84 * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
85 * @key randomness
86 * @requires vm.gc.Shenandoah
87 * @library /test/lib
88 *
89 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
90 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
91 * -XX:+ShenandoahVerify
92 * TestAllocHumongousFragment
93 *
94 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
95 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
96 * TestAllocHumongousFragment
97 */
98
99 /*
100 * @test id=static
101 * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
102 * @key randomness
103 * @requires vm.gc.Shenandoah
104 * @library /test/lib
105 *
106 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
107 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
108 * TestAllocHumongousFragment
109 */
110
111 /*
112 * @test id=compact
113 * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
114 * @key randomness
115 * @requires vm.gc.Shenandoah
116 * @library /test/lib
|
1 /*
2 * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
3 * Copyright (c) 2016, 2018, Red Hat, Inc. All rights reserved.
4 * Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 *
7 * This code is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 only, as
9 * published by the Free Software Foundation.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 *
78 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
79 * -XX:+ShenandoahAllocFailureALot
80 * TestAllocHumongousFragment
81 */
82
83 /*
84 * @test id=adaptive
85 * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
86 * @key randomness
87 * @requires vm.gc.Shenandoah
88 * @library /test/lib
89 *
90 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
91 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
92 * -XX:+ShenandoahVerify
93 * TestAllocHumongousFragment
94 *
95 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
96 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
97 * TestAllocHumongousFragment
98 */
99
100 /*
101 * @test id=generational
102 * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
103 * @key randomness
104 * @requires vm.gc.Shenandoah
105 * @library /test/lib
106 *
107 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
108 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
109 * -XX:+ShenandoahVerify
110 * TestAllocHumongousFragment
111 *
112 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
113 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive -XX:ShenandoahGCMode=generational
114 * TestAllocHumongousFragment
115 */
116
117 /*
118 * @test id=static
119 * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
120 * @key randomness
121 * @requires vm.gc.Shenandoah
122 * @library /test/lib
123 *
124 * @run main/othervm -Xmx1g -Xms1g -Xlog:gc -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:ShenandoahTargetNumRegions=2048
125 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
126 * TestAllocHumongousFragment
127 */
128
129 /*
130 * @test id=compact
131 * @summary Make sure Shenandoah can recover from humongous allocation fragmentation
132 * @key randomness
133 * @requires vm.gc.Shenandoah
134 * @library /test/lib
|