| author | dl |
| Wed Jul 13 12:24:56 2011 +0100 (22 months ago) | |
| changeset 5603 | a91ac65b5e2f |
| parent 5602 | 21b753dd0fde |
| child 5604 | a1c5bac982a6 |
| child 5606 | 6176777d2b97 |
--- a/test/java/util/concurrent/Executors/AutoShutdown.java Mon Nov 19 12:12:47 2012 +0000+++ b/test/java/util/concurrent/Executors/AutoShutdown.java Wed Jul 13 12:24:56 2011 +0100@@ -67,6 +67,11 @@ public class AutoShutdown {e1 = e2 = null;for (int i = 0; i < 10 && Thread.activeCount() > count0; i++)tryWaitForFinalizersToRun();+ for (int i = 0; i < 10; ++i) { // give JVM a chance to settle.+ if (Thread.activeCount() == count0)+ return;+ Thread.sleep(1000);+ }equal(Thread.activeCount(), count0);}