mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-05 16:09:09 +00:00
7065972: Some race condition may happen in SSLSocketImpl class
Reviewed-by: wetmore, weijun, dgu
This commit is contained in:
parent
f106ea9ed6
commit
7b1c8be3d3
@ -2443,11 +2443,12 @@ final public class SSLSocketImpl extends BaseSSLSocketImpl {
|
||||
entrySet, HandshakeCompletedEvent e) {
|
||||
|
||||
super("HandshakeCompletedNotify-Thread");
|
||||
targets = entrySet;
|
||||
targets = new HashSet<>(entrySet); // clone the entry set
|
||||
event = e;
|
||||
}
|
||||
|
||||
public void run() {
|
||||
// Don't need to synchronize, as it only runs in one thread.
|
||||
for (Map.Entry<HandshakeCompletedListener,AccessControlContext>
|
||||
entry : targets) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user