SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-140263: Fix data race in test_lock_two_threads (gh-140264)

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.
S
Sam Gross committed
f11ec6e643f54f4ee698f7dfc878812a315f2af4
Parent: e4f6445
Committed by GitHub <noreply@github.com> on 10/20/2025, 1:58:05 PM