Avoid using tsan_add
authorPauli <pauli@openssl.org>
Tue, 16 Aug 2022 22:34:50 +0000 (08:34 +1000)
committerMatt Caswell <matt@openssl.org>
Wed, 17 Aug 2022 11:21:18 +0000 (12:21 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19009)

crypto/property/property.c

index 3469768ca606bcefe03f37d2bca0a4c58bf8a04c..2c92cb5e5026dba9201e67a4af72a9ce41de554a 100644 (file)
@@ -673,7 +673,7 @@ static void ossl_method_cache_flush_some(OSSL_METHOD_STORE *store)
     store->cache_nelem = state.nelem;
     /* Without a timer, update the global seed */
     if (state.using_global_seed)
-        tsan_add(&global_seed, state.seed);
+        tsan_store(&global_seed, state.seed);
 }
 
 int ossl_method_store_cache_get(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,