Code Review Request, 8141651 Deadlock in

Xuelei Fan at
Sun Dec 6 00:03:50 UTC 2015


Please review the fix for JDK-8141651:

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.


More information about the security-dev mailing list