< prev index next >
test/hotspot/jtreg/gc/InfiniteList.java
Print this page
rev 54139 : imported patch 8219139
*** 1,7 ****
/*
! * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 24,35 ****
/*
* @test
* @bug 4098578
* @summary Check if the VM properly throws OutOfMemoryError
* @author Sheng Liang
! * @run main/othervm -Xmx25M InfiniteList
*/
public class InfiniteList {
InfiniteList next;
long data[] = new long[50000];
public static void main(String[] args) throws Exception {
InfiniteList p, q;
--- 24,38 ----
/*
* @test
* @bug 4098578
* @summary Check if the VM properly throws OutOfMemoryError
* @author Sheng Liang
! * @run main/othervm -Xmx25M gc.InfiniteList
*/
+
+ package gc;
+
public class InfiniteList {
InfiniteList next;
long data[] = new long[50000];
public static void main(String[] args) throws Exception {
InfiniteList p, q;
< prev index next >