]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-117657: Enable test_opcache under TSAN (GH-129831) (GH-130597)
authorSam Gross <colesbury@gmail.com>
Wed, 26 Feb 2025 18:59:59 +0000 (13:59 -0500)
committerGitHub <noreply@github.com>
Wed, 26 Feb 2025 18:59:59 +0000 (13:59 -0500)
commit9966daee602ef8413990683d6fd6f51e6392b885
tree267df62cee50fe54e305bab380a34edd10685eb6
parent43a2a372ba071c4ebb1071240da2b852c29d77fb
[3.13] gh-117657: Enable test_opcache under TSAN (GH-129831) (GH-130597)

Fix a few thread-safety bugs to enable test_opcache when run with TSAN:

 * Use relaxed atomics when clearing `ht->_spec_cache.getitem`
   (gh-115999)
 * Add temporary suppression for type slot modifications (gh-127266)
 * Use atomic load when reading `*dictptr`

(cherry picked from commit f151d271591ec525eaf01fa7b128e575374888b9)
Lib/test/libregrtest/tsan.py
Objects/object.c
Objects/typeobject.c
Tools/tsan/suppressions_free_threading.txt