Skip to content

gh-117657: Enable test_opcache under TSAN - #129831

Merged
colesbury merged 1 commit into
python:mainfrom
colesbury:gh-117657-opcache
Feb 11, 2025
Merged

colesbury merged 1 commit into
python:mainfrom
colesbury:gh-117657-opcache

Conversation

@colesbury

@colesbury colesbury commented Feb 7, 2025 •

Copy link
Copy Markdown
Contributor

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

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

 * Use relaxed atomics when clearing `ht->_spec_cache.getitem`
   (pythongh-115999)
 * Add temporary suppression for type slot modifications (pythongh-127266)
 * Use atomic load when reading `*dictptr`
@colesbury
colesbury merged commit f151d27 into python:main Feb 11, 2025
@colesbury
colesbury deleted the gh-117657-opcache branch February 11, 2025 21:53
@colesbury colesbury added the needs backport to 3.13 only security fixes label Feb 26, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Sorry, @colesbury, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker f151d271591ec525eaf01fa7b128e575374888b9 3.13
colesbury added a commit to colesbury/cpython that referenced this pull request Feb 26, 2025
Fix a few thread-safety bugs to enable test_opcache when run with TSAN:

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

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app

bedevere-app Bot commented Feb 26, 2025

Copy link
Copy Markdown

GH-130597 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Feb 26, 2025
colesbury added a commit that referenced this pull request Feb 26, 2025
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 f151d27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants