Skip to content

[3.13] gh-117657: Fix TSAN race involving import lock (GH-118523) - #120169

Merged
colesbury merged 1 commit into
python:3.13from
miss-islington:backport-e21057b-3.13
Jun 6, 2024
Merged

colesbury merged 1 commit into
python:3.13from
miss-islington:backport-e21057b-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 6, 2024 •

Copy link
Copy Markdown
Contributor

This adds a _PyRecursiveMutex type based on PyMutex and uses that
for the import lock. This fixes some data races in the free-threaded
build and generally simplifies the import lock code.
(cherry picked from commit e21057b)

Co-authored-by: Sam Gross colesbury@gmail.com

This adds a `_PyRecursiveMutex` type based on `PyMutex` and uses that
for the import lock. This fixes some data races in the free-threaded
build and generally simplifies the import lock code.
(cherry picked from commit e21057b)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants