25 * @test TestPauseNotifications |
25 * @test TestPauseNotifications |
26 * @summary Check that MX notifications are reported for all cycles |
26 * @summary Check that MX notifications are reported for all cycles |
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 -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:+ShenandoahDegeneratedGC TestPauseNotifications |
30 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
31 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive -XX:-ShenandoahDegeneratedGC TestPauseNotifications |
31 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive |
|
32 * -XX:+ShenandoahDegeneratedGC |
|
33 * TestPauseNotifications |
32 * |
34 * |
33 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestPauseNotifications |
35 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
34 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive TestPauseNotifications |
36 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive |
|
37 * -XX:-ShenandoahDegeneratedGC |
|
38 * TestPauseNotifications |
|
39 */ |
|
40 |
|
41 /* |
|
42 * @test TestPauseNotifications |
|
43 * @summary Check that MX notifications are reported for all cycles |
|
44 * @key gc |
|
45 * @requires vm.gc.Shenandoah & !vm.graal.enabled |
35 * |
46 * |
36 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive TestPauseNotifications |
47 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
37 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static TestPauseNotifications |
48 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive |
38 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact TestPauseNotifications |
49 * TestPauseNotifications |
39 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal TestPauseNotifications |
50 * |
|
51 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
52 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive |
|
53 * TestPauseNotifications |
|
54 * |
|
55 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
56 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static |
|
57 * TestPauseNotifications |
|
58 * |
|
59 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
60 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact |
|
61 * TestPauseNotifications |
|
62 */ |
|
63 |
|
64 /* |
|
65 * @test TestPauseNotifications |
|
66 * @summary Check that MX notifications are reported for all cycles |
|
67 * @key gc |
|
68 * @requires vm.gc.Shenandoah & !vm.graal.enabled |
|
69 * |
|
70 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
71 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal -XX:ShenandoahGCHeuristics=aggressive |
|
72 * TestPauseNotifications |
|
73 * |
|
74 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions |
|
75 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=traversal |
|
76 * TestPauseNotifications |
40 */ |
77 */ |
41 |
78 |
42 import java.util.*; |
79 import java.util.*; |
43 import java.util.concurrent.atomic.*; |
80 import java.util.concurrent.atomic.*; |
44 import javax.management.*; |
81 import javax.management.*; |