25 * @test TestRefprocSanity |
25 * @test TestRefprocSanity |
26 * @summary Test that null references/referents work fine |
26 * @summary Test that null references/referents work fine |
27 * @key gc |
27 * @key gc |
28 * @requires vm.gc.Shenandoah & !vm.graal.enabled |
28 * @requires vm.gc.Shenandoah & !vm.graal.enabled |
29 * |
29 * |
30 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g TestRefprocSanity |
30 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
31 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:+ShenandoahVerify TestRefprocSanity |
31 * -XX:+UseShenandoahGC |
32 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:ShenandoahGCHeuristics=aggressive TestRefprocSanity |
32 * -XX:+ShenandoahVerify |
33 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:+ShenandoahVerify -XX:ShenandoahGCMode=traversal TestRefprocSanity |
33 * TestRefprocSanity |
34 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:ShenandoahGCMode=traversal TestRefprocSanity |
34 * |
35 * @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xmx1g -Xms1g -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive TestRefprocSanity |
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 * @key gc |
|
48 * @requires vm.gc.Shenandoah & !vm.graal.enabled |
|
49 * |
|
50 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
51 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal |
|
52 * -XX:+ShenandoahVerify |
|
53 * TestRefprocSanity |
|
54 * |
|
55 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
56 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal |
|
57 * TestRefprocSanity |
|
58 * |
|
59 * @run main/othervm -Xmx1g -Xms1g -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
60 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive |
|
61 * TestRefprocSanity |
36 */ |
62 */ |
37 |
63 |
38 import java.lang.ref.*; |
64 import java.lang.ref.*; |
39 |
65 |
40 public class TestRefprocSanity { |
66 public class TestRefprocSanity { |