From 06a1bae40874017ae319441d5d768f434bcf34ea Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Mon, 3 Jan 2022 20:47:52 +0500 Subject: [PATCH] Workaround for issue #558 Signed-off-by: Vladislav Shchapov --- src/tbbmalloc/frontend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbbmalloc/frontend.cpp b/src/tbbmalloc/frontend.cpp index 1a507505364..d43e1f4be2b 100644 --- a/src/tbbmalloc/frontend.cpp +++ b/src/tbbmalloc/frontend.cpp @@ -1941,7 +1941,7 @@ void StartupBlock::free(void *ptr) * In theory, we only need values 0 and 2. But value 1 is nonetheless * useful for detecting errors in the double-check pattern. */ -static std::atomic mallocInitialized{0}; // implicitly initialized to 0 +static std::atomic mallocInitialized; // implicitly initialized to 0 static MallocMutex initMutex; /** The leading "\0" is here so that applying "strings" to the binary