]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Fix TSAN races in setobject.c (#121511)
authorSam Gross <colesbury@gmail.com>
Tue, 9 Jul 2024 16:11:43 +0000 (12:11 -0400)
committerGitHub <noreply@github.com>
Tue, 9 Jul 2024 16:11:43 +0000 (12:11 -0400)
commit9c08f40a613d9aee78de4ce4ec3e125d1496d148
tree438972207be9c3ca0bf2e746327d5c914d8d16e7
parent649d5b6d7b04607dd17810ac73e8f16720c6dc78
gh-117657: Fix TSAN races in setobject.c (#121511)

The `used` field must be written using atomic stores because `set_len`
and iterators may access the field concurrently without holding the
per-object lock.
Objects/setobject.c
Tools/tsan/suppressions_free_threading.txt