]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
thread: remove remnants of ossl_crypto_mem_barrier
authorČestmír Kalina <ckalina@redhat.com>
Fri, 17 Mar 2023 16:32:26 +0000 (17:32 +0100)
committerPauli <pauli@openssl.org>
Tue, 21 Mar 2023 08:04:23 +0000 (19:04 +1100)
Commit ac21c1780a63a8d9a3a6217eb52fe0d188fa7655 VMS knows POSIX threads too!
removed ossl_crypto_mem_barrier for POSIX systems.

Remove it for Win32 and other architectures as well.

Resolves issue #19506 Unable to build under bcc32c environment (Embarcadero
clang compiler).

Signed-off-by: Čestmír Kalina <ckalina@redhat.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20538)

crypto/thread/arch/thread_none.c
crypto/thread/arch/thread_win.c
include/internal/thread_arch.h

index 431a9b6a352a4f08d59794248fd34c90251720d0..c9c047c8e7817472d3ea3eb85838c8a2b63c33a2 100644 (file)
@@ -70,8 +70,4 @@ void ossl_crypto_condvar_free(CRYPTO_CONDVAR **cv)
 {
 }
 
-void ossl_crypto_mem_barrier(void)
-{
-}
-
 #endif
index b4c0500936142e5b23597faa2e2ad057a070658e..5bef48458e13a2df5e38b8f7197b84c3b806d869 100644 (file)
@@ -179,9 +179,4 @@ void ossl_crypto_condvar_free(CRYPTO_CONDVAR **cv)
     *cv_p = NULL;
 }
 
-void ossl_crypto_mem_barrier(void)
-{
-    MemoryBarrier();
-}
-
 #endif
index 171ea2286b1292989bca01465069fb74b0f78a81..bf000006061e79276dffe60a30894a4859e2de93 100644 (file)
@@ -117,6 +117,4 @@ int ossl_crypto_thread_native_exit(void);
 int ossl_crypto_thread_native_is_self(CRYPTO_THREAD *thread);
 int ossl_crypto_thread_native_clean(CRYPTO_THREAD *thread);
 
-void ossl_crypto_mem_barrier(void);
-
 #endif /* OSSL_INTERNAL_THREAD_ARCH_H */