Skip to content

[3.14] gh-132641: fix race in lru_cache under free-threading (GH-133787) #133979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 13, 2025

Fix race in lru_cache by acquiring critical section on the cache object itself and call the lock held variant of dict functions to modify the underlying dict.
(cherry picked from commit 9ad0c7b)

Co-authored-by: Peter Hawkins phawkins@google.com

…GH-133787)

Fix race in `lru_cache` by acquiring critical section on the cache object itself and call the lock held variant of dict functions to modify the underlying dict.
(cherry picked from commit 9ad0c7b)

Co-authored-by: Peter Hawkins <phawkins@google.com>
@kumaraditya303 kumaraditya303 enabled auto-merge (squash) May 13, 2025 17:39
@rhettinger rhettinger requested review from serhiy-storchaka and removed request for rhettinger May 13, 2025 20:38
@kumaraditya303 kumaraditya303 merged commit 66d6860 into python:3.14 May 14, 2025
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants