Skip to content

gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common#149164

Merged
nascheme merged 2 commits into
python:mainfrom
colesbury:gh-149162-intern-common-lock-dont-detach
Jul 16, 2026
Merged

gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common#149164
nascheme merged 2 commits into
python:mainfrom
colesbury:gh-149162-intern-common-lock-dont-detach

Conversation

@colesbury

@colesbury colesbury commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Avoids potential deadlocks with C++ static local initialization in extensions that call PyUnicode_InternFromString during one-time initialization.

Avoids potential deadlocks with C++ static local initialization in
extensions that call PyUnicode_InternFromString during one-time
initialization.
@StanFromIreland StanFromIreland added the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label May 7, 2026
@nascheme

Copy link
Copy Markdown
Member

Anything need to be done yet or can this be merged?

@colesbury

colesbury commented Jul 16, 2026 via email

Copy link
Copy Markdown
Contributor Author

@nascheme nascheme merged commit f62050d into python:main Jul 16, 2026
100 of 102 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @colesbury for the PR, and @nascheme for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

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

cherry_picker f62050d65743f0c895f7e6d665936c4e86aa39d5 3.14

@bedevere-app

bedevere-app Bot commented Jul 16, 2026

Copy link
Copy Markdown

GH-153814 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 16, 2026
@bedevere-app

bedevere-app Bot commented Jul 16, 2026

Copy link
Copy Markdown

GH-153815 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 16, 2026
nascheme added a commit that referenced this pull request Jul 16, 2026
… (gh-153815)

Avoids potential deadlocks with C++ static local initialization in
extensions that call PyUnicode_InternFromString during one-time
initialization.

(cherry picked from commit f62050d)

Co-authored-by: Sam Gross <colesbury@gmail.com>
nascheme pushed a commit that referenced this pull request Jul 16, 2026
… (gh-153814)

Avoids potential deadlocks with C++ static local initialization in
extensions that call PyUnicode_InternFromString during one-time
initialization.

(cherry picked from commit f62050d)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants