8214295: Populate handlers while holding streamHandlerLock
Reviewed-by: chegar
This commit is contained in:
parent
efcfec81ce
commit
6e905c8389
@ -1421,13 +1421,12 @@ public final class URL implements java.io.Serializable {
|
|||||||
// this thread created.
|
// this thread created.
|
||||||
handler = handler2;
|
handler = handler2;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Insert this handler into the hashtable
|
// Insert this handler into the hashtable
|
||||||
if (handler != null) {
|
if (handler != null) {
|
||||||
handlers.put(protocol, handler);
|
handlers.put(protocol, handler);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return handler;
|
return handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user