From b5166446e6599f96a0739017bd4bc128598de200 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 29 Nov 2017 20:06:48 +0300 Subject: [PATCH] Revert 'Eliminate TSan warning about data race in make_descriptor' This reverts commit a3ee14468b807ecf2d6fa279699b7a9879443bdf. Because it just hides a potential data race. --- typd_mlc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/typd_mlc.c b/typd_mlc.c index 501e161d..6c87e507 100644 --- a/typd_mlc.c +++ b/typd_mlc.c @@ -541,12 +541,7 @@ GC_API GC_descr GC_CALL GC_make_descriptor(const GC_word * bm, size_t len) # endif { GC_init_explicit_typing(); -# if defined(THREADS) && defined(AO_HAVE_load_acquire) \ - && defined(AO_HAVE_store) - AO_store(&GC_explicit_typing_initialized, (AO_t)TRUE); -# else - GC_explicit_typing_initialized = TRUE; -# endif + GC_explicit_typing_initialized = TRUE; } UNLOCK(); } -- 2.40.0