]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
crypto/threads_lock_contention: Remove duplicating code
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 7 Jul 2025 13:00:17 +0000 (15:00 +0200)
committerNeil Horman <nhorman@openssl.org>
Thu, 7 Aug 2025 15:02:51 +0000 (11:02 -0400)
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27983)

crypto/threads_pthread.c

index 338c1fb18567b67638fa4617cc27209d3e09f5a1..2a3d5cff25da9093133587ef121a6d38913e0232 100644 (file)
@@ -733,7 +733,6 @@ static ossl_inline int ossl_rwlock_rdlock(pthread_rwlock_t *lock)
             return ret;
         }
         end = ossl_time_now();
-        traces->stacks[traces->idx].duration = ossl_time_subtract(end, start);
         traces->stacks[traces->idx].nptrs = backtrace(buffer, BT_BUF_SIZE);
         traces->stacks[traces->idx].strings = backtrace_symbols(buffer,
                                                                 traces->stacks[traces->idx].nptrs);