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 <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/24969)
This commit is contained in:
Neil Horman 2024-07-29 15:17:07 -04:00
parent 9bd5e92aff
commit 7408d58714

View File

@ -59,7 +59,11 @@ __tsan_mutex_post_lock((x), 0, 0)
# 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