http-client-branch: inconsistent synchronization in ConnectionPool http-client-branch
authorchegar
Mon, 05 Feb 2018 11:57:50 +0000
branchhttp-client-branch
changeset 56063 fb2dd3c0dd60
parent 56062 48afabd2de78
child 56066 f140c8326fd9
child 56067 31eb9176ba85
http-client-branch: inconsistent synchronization in ConnectionPool
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ConnectionPool.java
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ConnectionPool.java	Mon Feb 05 11:54:03 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ConnectionPool.java	Mon Feb 05 11:57:50 2018 +0000
@@ -122,7 +122,7 @@
         return dbgTag;
     }
 
-    void start() {
+    synchronized void start() {
         assert !stopped : "Already stopped";
     }