diff options
author | Sam Gross <colesbury@gmail.com> | 2024-06-03 17:42:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 17:42:27 (GMT) |
commit | 41c1cefbae71d687d1a935233b086473df65e15c (patch) | |
tree | 93dc6cadbdbcbae36c95f481f137b4ed880c6b07 /Python | |
parent | 2e0aa731aebb8ef3d89ada82f5d39b1bbac65d1f (diff) | |
download | cpython-41c1cefbae71d687d1a935233b086473df65e15c.zip cpython-41c1cefbae71d687d1a935233b086473df65e15c.tar.gz cpython-41c1cefbae71d687d1a935233b086473df65e15c.tar.bz2 |
gh-117657: Avoid `sem_clockwait` in TSAN (#119915)
The `sem_clockwait` function is not currently instrumented, which leads
to false positives.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/parking_lot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/parking_lot.c b/Python/parking_lot.c index e2def9e..841b1d7 100644 --- a/Python/parking_lot.c +++ b/Python/parking_lot.c @@ -119,7 +119,7 @@ _PySemaphore_PlatformWait(_PySemaphore *sema, PyTime_t timeout) if (timeout >= 0) { struct timespec ts; -#if defined(CLOCK_MONOTONIC) && defined(HAVE_SEM_CLOCKWAIT) +#if defined(CLOCK_MONOTONIC) && defined(HAVE_SEM_CLOCKWAIT) && !defined(_Py_THREAD_SANITIZER) PyTime_t now; // silently ignore error: cannot report error to the caller (void)PyTime_MonotonicRaw(&now); |