From d8ecbb37dcfcee24c4f6c8e46e1e0caefb940187 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Mon, 29 Jul 2024 15:17:07 -0400 Subject: [PATCH] disable rwlocks on nonstop klt model It appears nonstops new threading model defines some level of rwlock pthread api, but its not working properly. Disable rwlocks for _KLT_MODEL_ for now Reviewed-by: Tomas Mraz Reviewed-by: Tom Cosgrove Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/28635) --- crypto/threads_pthread.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crypto/threads_pthread.c b/crypto/threads_pthread.c index 7fbe1cc5fa9..b004dd53927 100644 --- a/crypto/threads_pthread.c +++ b/crypto/threads_pthread.c @@ -41,7 +41,11 @@ # include -# ifdef PTHREAD_RWLOCK_INITIALIZER +/* + * The Non-Stop KLT thread model currently seems broken in its rwlock + * implementation + */ +# if defined(PTHREAD_RWLOCK_INITIALIZER) && !defined(_KLT_MODEL_) # define USE_RWLOCK # endif -- 2.47.3