]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
disable rwlocks on nonstop klt model
authorNeil Horman <nhorman@openssl.org>
Mon, 29 Jul 2024 19:17:07 +0000 (15:17 -0400)
committerNeil Horman <nhorman@openssl.org>
Wed, 24 Sep 2025 14:21:03 +0000 (10:21 -0400)
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 <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28635)

crypto/threads_pthread.c

index 7fbe1cc5fa94b1a8ae0f5e1ae6bc926c9888b7de..b004dd5392705f91f0f8adb8293688daac3362c7 100644 (file)
 
 # include <assert.h>
 
-# 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