]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117657: Fix TSAN race in free-threaded GC (#119883)
authorSam Gross <colesbury@gmail.com>
Sat, 1 Jun 2024 14:04:05 +0000 (10:04 -0400)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2024 14:04:05 +0000 (10:04 -0400)
commit60593b2052ca275559c11028d50e19f8e5dfee13
tree48fb7cb6ade84098a9d7d91dfdd63ce02ee645c4
parent5152120ae746516670c77e7feed5c4a8912f2bbb
gh-117657: Fix TSAN race in free-threaded GC (#119883)

Only call `gc_restore_tid()` from stop-the-world contexts.
`worklist_pop()` can be called while other threads are running, so use a
relaxed atomic to modify `ob_tid`.
Python/gc_free_threading.c
Tools/tsan/suppressions_free_threading.txt