Skip to content

Commit

Permalink
disable rwlocks on nonstop klt model
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Tom Cosgrove <[email protected]>
(Merged from openssl#24969)
  • Loading branch information
nhorman committed Jul 31, 2024
1 parent 9bd5e92 commit 7408d58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crypto/threads_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7408d58

Please sign in to comment.