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 *
23 */
24
25 /* @test TestPinnedGarbage
26 * @summary Test that garbage in the pinned region does not crash VM
27 * @key randomness
28 * @requires vm.gc.Shenandoah & !vm.graal.enabled
29 * @library /test/lib
30 *
31 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
32 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
33 * -XX:+ShenandoahVerify -XX:+ShenandoahDegeneratedGC
34 * TestPinnedGarbage
35 *
36 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
37 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
38 * -XX:+ShenandoahVerify -XX:-ShenandoahDegeneratedGC
39 * TestPinnedGarbage
40 */
41
42 /* @test TestPinnedGarbage
43 * @summary Test that garbage in the pinned region does not crash VM
44 * @key randomness
45 * @requires vm.gc.Shenandoah & !vm.graal.enabled
46 * @library /test/lib
47 *
48 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
49 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
50 * TestPinnedGarbage
51 *
52 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
53 * -XX:+UseShenandoahGC
54 * -XX:+ShenandoahVerify
55 * TestPinnedGarbage
56 */
57
58 import java.util.Arrays;
59 import java.util.Random;
60 import jdk.test.lib.Utils;
61
62 public class TestPinnedGarbage {
63 static {
64 System.loadLibrary("TestPinnedGarbage");
65 }
|
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 *
23 */
24
25 /* @test TestPinnedGarbage
26 * @summary Test that garbage in the pinned region does not crash VM
27 * @key randomness
28 * @requires vm.gc.Shenandoah
29 * @library /test/lib
30 *
31 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
32 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
33 * -XX:+ShenandoahVerify -XX:+ShenandoahDegeneratedGC
34 * TestPinnedGarbage
35 *
36 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
37 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
38 * -XX:+ShenandoahVerify -XX:-ShenandoahDegeneratedGC
39 * TestPinnedGarbage
40 */
41
42 /* @test TestPinnedGarbage
43 * @summary Test that garbage in the pinned region does not crash VM
44 * @key randomness
45 * @requires vm.gc.Shenandoah
46 * @library /test/lib
47 *
48 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
49 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
50 * TestPinnedGarbage
51 *
52 * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx512m
53 * -XX:+UseShenandoahGC
54 * -XX:+ShenandoahVerify
55 * TestPinnedGarbage
56 */
57
58 import java.util.Arrays;
59 import java.util.Random;
60 import jdk.test.lib.Utils;
61
62 public class TestPinnedGarbage {
63 static {
64 System.loadLibrary("TestPinnedGarbage");
65 }
|