gh-112536: Add support for thread sanitizer (TSAN) (gh-112648)

This commit is contained in:
Samet YASLAN 2023-12-30 09:17:02 +01:00 • committed by GitHub
parent f46987b828
commit 88cb972000
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 81 additions and 10 deletions

View file

@ -563,6 +563,11 @@ extern "C" {
# define _Py_ADDRESS_SANITIZER
# endif
# endif
# if __has_feature(thread_sanitizer)
# if !defined(_Py_THREAD_SANITIZER)
# define _Py_THREAD_SANITIZER
# endif
# endif
#elif defined(__GNUC__)
# if defined(__SANITIZE_ADDRESS__)
# define _Py_ADDRESS_SANITIZER