Skip to content

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

Merged
kumaraditya303 merged 1 commit into
python:3.14from
miss-islington:backport-9ad0c7b-3.14
May 14, 2025
Merged

[3.14] gh-132641: fix race in lru_cache under free-threading (GH-133787)#133979
kumaraditya303 merged 1 commit into
python:3.14from
miss-islington:backport-9ad0c7b-3.14

Conversation

@miss-islington

@miss-islingtonmiss-islington commented May 13, 2025

Copy link
Copy Markdown
Contributor

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 rhettingerMay 13, 2025 20:38
@kumaraditya303
kumaraditya303 merged commit 66d6860 into python:3.14May 14, 2025
@miss-islington
miss-islington deleted the backport-9ad0c7b-3.14 branch January 2, 2026 16:58
Sign up for freeto 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

@miss-islington@serhiy-storchaka@kumaraditya303@hawkinsp