From: Donghee Na Date: Mon, 11 Mar 2024 13:25:55 +0000 (+0900) Subject: gh-112536: Define MI_TSAN to 1 for --with-mimalloc and --with-thread-sanitizer (gh... X-Git-Tag: v3.13.0a5~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c4fc209e1941958164509204cdc3505130c1820;p=thirdparty%2FPython%2Fcpython.git gh-112536: Define MI_TSAN to 1 for --with-mimalloc and --with-thread-sanitizer (gh-116558) --- diff --git a/Include/internal/pycore_mimalloc.h b/Include/internal/pycore_mimalloc.h index 3ef0154ba76d..10d451398f14 100644 --- a/Include/internal/pycore_mimalloc.h +++ b/Include/internal/pycore_mimalloc.h @@ -32,6 +32,10 @@ typedef enum { # define MI_DEBUG 0 #endif +#ifdef _Py_THREAD_SANITIZER +# define MI_TSAN 1 +#endif + #include "mimalloc.h" #include "mimalloc/types.h" #include "mimalloc/internal.h"