]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-112536: Define MI_TSAN to 1 for --with-mimalloc and --with-thread-sanitizer (gh...
authorDonghee Na <donghee.na@python.org>
Mon, 11 Mar 2024 13:25:55 +0000 (22:25 +0900)
committerGitHub <noreply@github.com>
Mon, 11 Mar 2024 13:25:55 +0000 (22:25 +0900)
Include/internal/pycore_mimalloc.h

index 3ef0154ba76d20896d7192b3dc637cccdc0636eb..10d451398f14107e04c8940c8aef1190985fc496 100644 (file)
@@ -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"