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 /*
26 * @test TestRefprocSanity
27 * @summary Test that null references/referents work fine
28 * @requires vm.gc.Shenandoah & !vm.graal.enabled
29 *
30 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
31 * -XX:+UseShenandoahGC
32 * -XX:+ShenandoahVerify
33 * TestRefprocSanity
34 *
35 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
36 * -XX:+UseShenandoahGC
37 * TestRefprocSanity
38 *
39 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
40 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
41 * TestRefprocSanity
42 */
43
44 /*
45 * @test TestRefprocSanity
46 * @summary Test that null references/referents work fine
47 * @requires vm.gc.Shenandoah & !vm.graal.enabled
48 *
49 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
50 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
51 * -XX:+ShenandoahVerify
52 * TestRefprocSanity
53 *
54 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
55 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
56 * TestRefprocSanity
57 *
58 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
59 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
60 * TestRefprocSanity
61 */
62
63 import java.lang.ref.*;
64
65 public class TestRefprocSanity {
66
67 static final long TARGET_MB = Long.getLong("target", 10_000); // 10 Gb allocation
|
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 /*
26 * @test TestRefprocSanity
27 * @summary Test that null references/referents work fine
28 * @requires vm.gc.Shenandoah
29 *
30 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
31 * -XX:+UseShenandoahGC
32 * -XX:+ShenandoahVerify
33 * TestRefprocSanity
34 *
35 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
36 * -XX:+UseShenandoahGC
37 * TestRefprocSanity
38 *
39 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
40 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
41 * TestRefprocSanity
42 */
43
44 /*
45 * @test TestRefprocSanity
46 * @summary Test that null references/referents work fine
47 * @requires vm.gc.Shenandoah
48 *
49 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
50 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
51 * -XX:+ShenandoahVerify
52 * TestRefprocSanity
53 *
54 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
55 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
56 * TestRefprocSanity
57 *
58 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
59 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
60 * TestRefprocSanity
61 */
62
63 import java.lang.ref.*;
64
65 public class TestRefprocSanity {
66
67 static final long TARGET_MB = Long.getLong("target", 10_000); // 10 Gb allocation
|