http-client-branch: fix race condition and MT-safety in SmokeTest (fix the fix) http-client-branch
authordfuchs
Tue, 06 Feb 2018 17:26:49 +0000
branchhttp-client-branch
changeset 56084 6146d87993db
parent 56083 32ff53628380
child 56085 544869ae0b16
http-client-branch: fix race condition and MT-safety in SmokeTest (fix the fix)
test/jdk/java/net/httpclient/SmokeTest.java
--- a/test/jdk/java/net/httpclient/SmokeTest.java	Tue Feb 06 17:21:28 2018 +0000
+++ b/test/jdk/java/net/httpclient/SmokeTest.java	Tue Feb 06 17:26:49 2018 +0000
@@ -983,7 +983,7 @@
         }
         // Third test
         if (n > 7) {
-            try {latch.await();} catch (InterruptedException e) {}
+            try {latch8.await();} catch (InterruptedException e) {}
             if (np > 4) {
                 System.err.println("XXX np = " + np);
             }