mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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 {
|
try {
|
||||||
Plaintext plainText;
|
Plaintext plainText = decode(buffer);
|
||||||
socketLock.lock();
|
|
||||||
try {
|
|
||||||
plainText = decode(buffer);
|
|
||||||
} finally {
|
|
||||||
socketLock.unlock();
|
|
||||||
}
|
|
||||||
if (plainText.contentType == ContentType.APPLICATION_DATA.id &&
|
if (plainText.contentType == ContentType.APPLICATION_DATA.id &&
|
||||||
buffer.position() > 0) {
|
buffer.position() > 0) {
|
||||||
return buffer;
|
return buffer;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue