mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8214295: Populate handlers while holding streamHandlerLock
Reviewed-by: chegar
This commit is contained in:
parent
efcfec81ce
commit
6e905c8389
1 changed files with 4 additions and 5 deletions
|
@ -1421,13 +1421,12 @@ public final class URL implements java.io.Serializable {
|
|||
// this thread created.
|
||||
handler = handler2;
|
||||
}
|
||||
}
|
||||
|
||||
// Insert this handler into the hashtable
|
||||
if (handler != null) {
|
||||
handlers.put(protocol, handler);
|
||||
// Insert this handler into the hashtable
|
||||
if (handler != null) {
|
||||
handlers.put(protocol, handler);
|
||||
}
|
||||
}
|
||||
|
||||
return handler;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue