diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-03 18:07:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 18:07:22 (GMT) |
commit | ca37034baa2909722df58c02dfd13e1d667252ce (patch) | |
tree | 97c08668ec424d132357d35ce0a80236a6981768 /Python | |
parent | 6b10467fbc0b67bf217ea27956b545103c4a0ad5 (diff) | |
download | cpython-ca37034baa2909722df58c02dfd13e1d667252ce.zip cpython-ca37034baa2909722df58c02dfd13e1d667252ce.tar.gz cpython-ca37034baa2909722df58c02dfd13e1d667252ce.tar.bz2 |
[3.13] gh-117657: Avoid `sem_clockwait` in TSAN (GH-119915) (#119992)
The `sem_clockwait` function is not currently instrumented, which leads
to false positives.
(cherry picked from commit 41c1cefbae71d687d1a935233b086473df65e15c)
Co-authored-by: Sam Gross <colesbury@gmail.com>
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); |