cpython/Modules/_testinternalcapi
Miss Islington (bot) 6493a6aaf3
[3.14] gh-140263: Fix data race in test_lock_two_threads (gh-140264) (gh-140369)
Clang-20 detects a data race between the unlock and the non-atomic
read of the lock state. Use a relaxed load for the assertion to avoid
the race.
(cherry picked from commit f11ec6e643)

Co-authored-by: Sam Gross <colesbury@gmail.com>
2025-10-20 14:25:42 +00:00
..
clinic
complex.c
parts.h
pytime.c
README.txt
set.c
test_critical_sections.c
test_lock.c [3.14] gh-140263: Fix data race in test_lock_two_threads (gh-140264) (gh-140369) 2025-10-20 14:25:42 +00:00

Tests in this directory are compiled into the _testinternalcapi extension.
The main file for the extension is Modules/_testinternalcapimodule.c, which
calls `_PyTestInternalCapi_Init_*` from these functions.

See Modules/_testcapi/README.txt for guideline when writing C test code.