mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-07 03:48:42 +03:00
make segment abandoned_next atomic; tsan passes without warnings now (issue #130)
This commit is contained in:
parent
09ade02429
commit
95afd0509f
3 changed files with 31 additions and 16 deletions
|
@ -126,6 +126,7 @@ endif()
|
|||
if(MI_DEBUG_TSAN MATCHES "ON")
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
message(STATUS "Build with thread sanitizer (MI_DEBUG_TSAN=ON)")
|
||||
list(APPEND mi_defines MI_TSAN=1)
|
||||
list(APPEND mi_cflags -fsanitize=thread -g -O1)
|
||||
list(APPEND CMAKE_EXE_LINKER_FLAGS -fsanitize=thread)
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue