diff options
author | Donghee Na <donghee.na@python.org> | 2024-03-11 13:25:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 13:25:55 (GMT) |
commit | 6c4fc209e1941958164509204cdc3505130c1820 (patch) | |
tree | 15cbdc1c56e86d3566b8dc8e11dea49546b97991 /Include/internal | |
parent | 817fe33a1da747c57b467f73a47b701c0b0eb911 (diff) | |
download | cpython-6c4fc209e1941958164509204cdc3505130c1820.zip cpython-6c4fc209e1941958164509204cdc3505130c1820.tar.gz cpython-6c4fc209e1941958164509204cdc3505130c1820.tar.bz2 |
gh-112536: Define MI_TSAN to 1 for --with-mimalloc and --with-thread-sanitizer (gh-116558)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_mimalloc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_mimalloc.h b/Include/internal/pycore_mimalloc.h index 3ef0154..10d4513 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" |