提交 3d25195f 编写于 作者: G gadams

6957683: test/java/util/concurrent/ThreadPoolExecutor/Custom.java failing

Reviewed-by: chegar, dholmes, alanb
上级 eac4d108
...@@ -100,8 +100,8 @@ public class Custom { ...@@ -100,8 +100,8 @@ public class Custom {
equal(countExecutorThreads(), threadCount); equal(countExecutorThreads(), threadCount);
equal(CustomTask.births.get(), threadCount); equal(CustomTask.births.get(), threadCount);
tpe.shutdown(); tpe.shutdown();
tpe.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS); tpe.awaitTermination(120, TimeUnit.SECONDS);
Thread.sleep(10); Thread.sleep(1000);
equal(countExecutorThreads(), 0); equal(countExecutorThreads(), 0);
CustomSTPE stpe = new CustomSTPE(); CustomSTPE stpe = new CustomSTPE();
...@@ -110,8 +110,8 @@ public class Custom { ...@@ -110,8 +110,8 @@ public class Custom {
equal(CustomSTPE.decorations.get(), threadCount); equal(CustomSTPE.decorations.get(), threadCount);
equal(countExecutorThreads(), threadCount); equal(countExecutorThreads(), threadCount);
stpe.shutdown(); stpe.shutdown();
stpe.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS); stpe.awaitTermination(120, TimeUnit.SECONDS);
Thread.sleep(10); Thread.sleep(1000);
equal(countExecutorThreads(), 0); equal(countExecutorThreads(), 0);
System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册