Skip to content

Commit ad440fc

Browse files
corona10diegorusso
authored andcommitted
pythongh-112536: Define MI_TSAN to 1 for --with-mimalloc and --with-thread-sanitizer (pythongh-116558)
1 parent fa7c103 commit ad440fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Include/internal/pycore_mimalloc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ typedef enum {
3232
# define MI_DEBUG 0
3333
#endif
3434

35+
#ifdef _Py_THREAD_SANITIZER
36+
# define MI_TSAN 1
37+
#endif
38+
3539
#include "mimalloc.h"
3640
#include "mimalloc/types.h"
3741
#include "mimalloc/internal.h"

0 commit comments

Comments
 (0)