Code Review Request, 8141651 Deadlock in sun.security.ssl.SSLSocketImpl
Xuelei Fan
xuelei.fan at oracle.com
Sun Dec 6 00:03:50 UTC 2015
Hi,
Please review the fix for JDK-8141651:
http://cr.openjdk.java.net/~xuelei/8141651/webrev.00/
In JDK 9, there is a deadlock introduced. One thread can lock
SSLSocketImpl instance, and try to lock SSLSocketImpl.writeLock; Another
thread may lock SSLSocketImpl.writeLock, and then try to lock
SSLSocketImpl instance. A deadlock happens.
This fix is trying to remove the latter lock sequence.
No new regression test as it is hard to re-produce the issue.
Thanks,
Xuelei
More information about the security-dev
mailing list