Skip to content

Commit

Permalink
pythongh-112536: Define MI_TSAN to 1 for --with-mimalloc and --with-t…
Browse files Browse the repository at this point in the history
…hread-sanitizer (pythongh-116558)
  • Loading branch information
corona10 authored and adorilson committed Mar 25, 2024
1 parent 766df0f commit 2e5997d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Include/internal/pycore_mimalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2e5997d

Please sign in to comment.