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

This commit is contained in:
Donghee Na 2024-03-11 22:25:55 +09:00 committed by GitHub
parent 817fe33a1d
commit 6c4fc209e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View 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"