diff options
author | Matt Caswell <matt@openssl.org> | 2023-05-10 17:27:03 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-05-29 16:08:34 +0200 |
commit | 36424806d699233b9a90a3a97fff3011828e2548 (patch) | |
tree | 72ee30300c18d7fddde134a2792acad601c91124 /VMS/msg_install.com | |
parent | x509: Handle ossl_policy_level_add_node errors (diff) | |
download | openssl-36424806d699233b9a90a3a97fff3011828e2548.tar.xz openssl-36424806d699233b9a90a3a97fff3011828e2548.zip |
Don't take a write lock when freeing an EVP_PKEY
When freeing the last reference to an EVP_PKEY there is no point in
taking the lock for the key. It is the last reference and is being freed
so must only be being used by a single thread.
This should not have been the source of any contention so its unclear to
what extent this will improve performance. But we should not be locking
when we don't need to.
Partially fixes #20286
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20932)
Diffstat (limited to 'VMS/msg_install.com')
0 files changed, 0 insertions, 0 deletions