8040692: [TESTBUG] sun/management/jmxremote/bootstrap/JvmstatCountersTest.java requires -XX:+UsePerfData option to pass on embedded platforms
Reviewed-by: sla
--- a/jdk/test/sun/management/HotspotClassLoadingMBean/GetClassInitializationTime.java Thu Aug 21 22:07:14 2014 -0700
+++ b/jdk/test/sun/management/HotspotClassLoadingMBean/GetClassInitializationTime.java Thu Aug 21 14:36:49 2014 +0200
@@ -26,6 +26,7 @@
* @bug 4858522
* @summary Basic unit test of HotspotClassLoadingMBean.getClassInitializationTime()
* @author Steve Bohne
+ * @run main/othervm -XX:+UsePerfData GetClassInitializationTime
*/
/*
--- a/jdk/test/sun/management/HotspotRuntimeMBean/GetSafepointSyncTime.java Thu Aug 21 22:07:14 2014 -0700
+++ b/jdk/test/sun/management/HotspotRuntimeMBean/GetSafepointSyncTime.java Thu Aug 21 14:36:49 2014 +0200
@@ -26,6 +26,7 @@
* @bug 4858522
* @summary Basic unit test of HotspotRuntimeMBean.getSafepointSyncTime()
* @author Steve Bohne
+ * @run main/othervm -XX:+UsePerfData GetSafepointSyncTime
*/
/*
--- a/jdk/test/sun/management/HotspotThreadMBean/GetInternalThreads.java Thu Aug 21 22:07:14 2014 -0700
+++ b/jdk/test/sun/management/HotspotThreadMBean/GetInternalThreads.java Thu Aug 21 14:36:49 2014 +0200
@@ -27,6 +27,7 @@
* @summary Basic Test for HotspotThreadMBean.getInternalThreadCount()
* and getInternalThreadCpuTime()
* @author Mandy Chung
+ * @run main/othervm -XX:+UsePerfData GetInternalThreads
*/
import sun.management.*;
--- a/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java Thu Aug 21 22:07:14 2014 -0700
+++ b/jdk/test/sun/management/jmxremote/bootstrap/JvmstatCountersTest.java Thu Aug 21 14:36:49 2014 +0200
@@ -29,10 +29,10 @@
* @author Luis-Miguel Alventosa
* @run clean JvmstatCountersTest
* @run build JvmstatCountersTest
- * @run main/othervm/timeout=600 JvmstatCountersTest 1
- * @run main/othervm/timeout=600 -Dcom.sun.management.jmxremote JvmstatCountersTest 2
- * @run main/othervm/timeout=600 -Dcom.sun.management.jmxremote.port=0 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false JvmstatCountersTest 3
- * @run main/othervm/timeout=600 JvmstatCountersTest 4
+ * @run main/othervm/timeout=600 -XX:+UsePerfData JvmstatCountersTest 1
+ * @run main/othervm/timeout=600 -XX:+UsePerfData -Dcom.sun.management.jmxremote JvmstatCountersTest 2
+ * @run main/othervm/timeout=600 -XX:+UsePerfData -Dcom.sun.management.jmxremote.port=0 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false JvmstatCountersTest 3
+ * @run main/othervm/timeout=600 -XX:+UsePerfData JvmstatCountersTest 4
*/
import java.io.*;
--- a/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java Thu Aug 21 22:07:14 2014 -0700
+++ b/jdk/test/sun/management/jmxremote/startstop/JMXStartStopTest.java Thu Aug 21 14:36:49 2014 +0200
@@ -53,7 +53,7 @@
* @bug 7110104
* @library /lib/testlibrary
* @build jdk.testlibrary.* JMXStartStopTest JMXStartStopDoSomething
- * @run main/othervm/timeout=600 JMXStartStopTest
+ * @run main/othervm/timeout=600 -XX:+UsePerfData JMXStartStopTest
* @summary Makes sure that enabling/disabling the management agent through
* JCMD achieves the desired results
*/