changeset 19814:77d0468c8874

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
author jbachorik
date Thu, 05 Sep 2013 14:34:22 +0200
parents 4aa8cfd46576
children 5b15fa787fab
files jdk/test/java/lang/management/ThreadMXBean/LockedMonitors.java jdk/test/java/lang/management/ThreadMXBean/LockedSynchronizers.java jdk/test/java/lang/management/ThreadMXBean/MyOwnSynchronizer.java jdk/test/java/lang/management/ThreadMXBean/SharedSynchronizer.java jdk/test/java/lang/management/ThreadMXBean/SynchronizationStatistics.java
diffstat 5 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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.*;