8004179: Few of test/java/lang/management/ThreadMXBean/* tests don't clean up the created threads
Summary: Just run those tests in "othervm" mode.
Reviewed-by: alanb, dfuchs, sjiang
--- a/jdk/test/java/lang/management/ThreadMXBean/LockedMonitors.java Thu Sep 05 13:04:17 2013 +0200
+++ b/jdk/test/java/lang/management/ThreadMXBean/LockedMonitors.java Thu Sep 05 14:34:22 2013 +0200
@@ -37,7 +37,7 @@
* @build Barrier
* @build LockingThread
* @build ThreadDump
- * @run main LockedMonitors
+ * @run main/othervm LockedMonitors
*/
import java.lang.management.*;
--- a/jdk/test/java/lang/management/ThreadMXBean/LockedSynchronizers.java Thu Sep 05 13:04:17 2013 +0200
+++ b/jdk/test/java/lang/management/ThreadMXBean/LockedSynchronizers.java Thu Sep 05 14:34:22 2013 +0200
@@ -33,7 +33,7 @@
* @build Barrier
* @build SynchronizerLockingThread
* @build ThreadDump
- * @run main LockedSynchronizers
+ * @run main/othervm LockedSynchronizers
*/
import java.lang.management.*;
--- a/jdk/test/java/lang/management/ThreadMXBean/MyOwnSynchronizer.java Thu Sep 05 13:04:17 2013 +0200
+++ b/jdk/test/java/lang/management/ThreadMXBean/MyOwnSynchronizer.java Thu Sep 05 14:34:22 2013 +0200
@@ -30,7 +30,7 @@
*
* @build Barrier
* @build ThreadDump
- * @run main MyOwnSynchronizer
+ * @run main/othervm MyOwnSynchronizer
*/
import java.lang.management.*;
--- a/jdk/test/java/lang/management/ThreadMXBean/SharedSynchronizer.java Thu Sep 05 13:04:17 2013 +0200
+++ b/jdk/test/java/lang/management/ThreadMXBean/SharedSynchronizer.java Thu Sep 05 14:34:22 2013 +0200
@@ -28,7 +28,7 @@
* in shared mode which has no owner when a thread is parked.
* @author Mandy Chung
*
- * @run main SharedSynchronizer
+ * @run main/othervm SharedSynchronizer
*/
--- a/jdk/test/java/lang/management/ThreadMXBean/SynchronizationStatistics.java Thu Sep 05 13:04:17 2013 +0200
+++ b/jdk/test/java/lang/management/ThreadMXBean/SynchronizationStatistics.java Thu Sep 05 14:34:22 2013 +0200
@@ -30,7 +30,7 @@
*
* @ignore 6309226
* @build Semaphore
- * @run main SynchronizationStatistics
+ * @run main/othervm SynchronizationStatistics
*/
import java.lang.management.*;