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 TestPauseNotifications
27 * @summary Check that MX notifications are reported for all cycles
28 * @requires vm.gc.Shenandoah & !vm.graal.enabled
29 *
30 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
31 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
32 * -XX:+ShenandoahDegeneratedGC
33 * TestPauseNotifications
34 *
35 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
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 * @requires vm.gc.Shenandoah & !vm.graal.enabled
45 *
46 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
47 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
48 * TestPauseNotifications
49 *
50 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
51 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
52 * TestPauseNotifications
53 *
54 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
55 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
56 * TestPauseNotifications
57 *
58 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
59 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
60 * TestPauseNotifications
61 */
62
63 /*
64 * @test TestPauseNotifications
65 * @summary Check that MX notifications are reported for all cycles
66 * @requires vm.gc.Shenandoah & !vm.graal.enabled
67 *
68 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
69 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
70 * TestPauseNotifications
71 *
72 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
73 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
74 * TestPauseNotifications
75 */
76
77 import java.util.*;
78 import java.util.concurrent.atomic.*;
79 import javax.management.*;
80 import java.lang.management.*;
81 import javax.management.openmbean.*;
82
83 import com.sun.management.GarbageCollectionNotificationInfo;
84
85 public class TestPauseNotifications {
86
|
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 TestPauseNotifications
27 * @summary Check that MX notifications are reported for all cycles
28 * @requires vm.gc.Shenandoah
29 *
30 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
31 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=passive
32 * -XX:+ShenandoahDegeneratedGC
33 * TestPauseNotifications
34 *
35 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
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 * @requires vm.gc.Shenandoah
45 *
46 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
47 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive
48 * TestPauseNotifications
49 *
50 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
51 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=adaptive
52 * TestPauseNotifications
53 *
54 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
55 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=static
56 * TestPauseNotifications
57 *
58 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
59 * -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact
60 * TestPauseNotifications
61 */
62
63 /*
64 * @test TestPauseNotifications
65 * @summary Check that MX notifications are reported for all cycles
66 * @requires vm.gc.Shenandoah
67 *
68 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
69 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu -XX:ShenandoahGCHeuristics=aggressive
70 * TestPauseNotifications
71 *
72 * @run main/othervm -Xmx128m -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions
73 * -XX:+UseShenandoahGC -XX:ShenandoahGCMode=iu
74 * TestPauseNotifications
75 */
76
77 import java.util.*;
78 import java.util.concurrent.atomic.*;
79 import javax.management.*;
80 import java.lang.management.*;
81 import javax.management.openmbean.*;
82
83 import com.sun.management.GarbageCollectionNotificationInfo;
84
85 public class TestPauseNotifications {
86
|