mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8263743: redundant lock in SSLSocketImpl
Reviewed-by: jnimeh
This commit is contained in:
parent
3fcb499ce6
commit
a678a38dd9
1 changed files with 1 additions and 7 deletions
|
@ -1469,13 +1469,7 @@ public final class SSLSocketImpl
|
|||
}
|
||||
|
||||
try {
|
||||
Plaintext plainText;
|
||||
socketLock.lock();
|
||||
try {
|
||||
plainText = decode(buffer);
|
||||
} finally {
|
||||
socketLock.unlock();
|
||||
}
|
||||
Plaintext plainText = decode(buffer);
|
||||
if (plainText.contentType == ContentType.APPLICATION_DATA.id &&
|
||||
buffer.position() > 0) {
|
||||
return buffer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue