https://github.com/python/cpython/commit/6c4fc209e1941958164509204cdc3505130c1820
commit: 6c4fc209e1941958164509204cdc3505130c1820
branch: main
author: Donghee Na <[email protected]>
committer: corona10 <[email protected]>
date: 2024-03-11T22:25:55+09:00
summary:

gh-112536: Define MI_TSAN to 1 for --with-mimalloc and --with-thread-sanitizer 
(gh-116558)

files:
M Include/internal/pycore_mimalloc.h

diff --git a/Include/internal/pycore_mimalloc.h 
b/Include/internal/pycore_mimalloc.h
index 3ef0154ba76d20..10d451398f1410 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"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to