@@ -30,8 +30,8 @@ static void _PyMem_SetupDebugHooksDomain(PyMemAllocatorDomain domain);
30
30
31
31
#if defined(__has_feature ) /* Clang */
32
32
# if __has_feature (address_sanitizer ) /* is ASAN enabled? */
33
- # define _Py_NO_ADDRESS_SAFETY_ANALYSIS \
34
- __attribute__((no_address_safety_analysis ))
33
+ # define _Py_NO_SANITIZE_ADDRESS \
34
+ __attribute__((no_sanitize("address") ))
35
35
# endif
36
36
# if __has_feature (thread_sanitizer ) /* is TSAN enabled? */
37
37
# define _Py_NO_SANITIZE_THREAD __attribute__((no_sanitize_thread))
@@ -41,8 +41,8 @@ static void _PyMem_SetupDebugHooksDomain(PyMemAllocatorDomain domain);
41
41
# endif
42
42
#elif defined(__GNUC__ )
43
43
# if defined(__SANITIZE_ADDRESS__ ) /* GCC 4.8+, is ASAN enabled? */
44
- # define _Py_NO_ADDRESS_SAFETY_ANALYSIS \
45
- __attribute__((no_address_safety_analysis ))
44
+ # define _Py_NO_SANITIZE_ADDRESS \
45
+ __attribute__((no_sanitize_address ))
46
46
# endif
47
47
// TSAN is supported since GCC 5.1, but __SANITIZE_THREAD__ macro
48
48
// is provided only since GCC 7.
@@ -51,8 +51,8 @@ static void _PyMem_SetupDebugHooksDomain(PyMemAllocatorDomain domain);
51
51
# endif
52
52
#endif
53
53
54
- #ifndef _Py_NO_ADDRESS_SAFETY_ANALYSIS
55
- # define _Py_NO_ADDRESS_SAFETY_ANALYSIS
54
+ #ifndef _Py_NO_SANITIZE_ADDRESS
55
+ # define _Py_NO_SANITIZE_ADDRESS
56
56
#endif
57
57
#ifndef _Py_NO_SANITIZE_THREAD
58
58
# define _Py_NO_SANITIZE_THREAD
@@ -1350,7 +1350,7 @@ obmalloc controls. Since this test is needed at every entry point, it's
1350
1350
extremely desirable that it be this fast.
1351
1351
*/
1352
1352
1353
- static bool _Py_NO_ADDRESS_SAFETY_ANALYSIS
1353
+ static bool _Py_NO_SANITIZE_ADDRESS
1354
1354
_Py_NO_SANITIZE_THREAD
1355
1355
_Py_NO_SANITIZE_MEMORY
1356
1356
address_in_range (void * p , poolp pool )
0 commit comments