aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Xue-Lei Andrew Fan <xuelei@openjdk.org> 2021-03-25 05:16:37 +0000
committerGravatar Xue-Lei Andrew Fan <xuelei@openjdk.org> 2021-03-25 05:16:37 +0000
commita678a38dd9007951a63b979ec217ca4f2025efa1 (patch)
tree8444a4461a40207b3d4cb187271a2a44d9f66466
parent3fcb499ce693a79d6857397803b1e1cd994633a6 (diff)
downloadjdk-a678a38dd9007951a63b979ec217ca4f2025efa1.tar.gz
jdk-a678a38dd9007951a63b979ec217ca4f2025efa1.zip
8263743: redundant lock in SSLSocketImpl
Reviewed-by: jnimeh
-rw-r--r--src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java b/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
index 95c77c98f67..01b8ebf27ef 100644
--- a/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
+++ b/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
@@ -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;