]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common (gh-149164) (gh-153814)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 Jul 2026 18:59:43 +0000 (20:59 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Jul 2026 18:59:43 +0000 (11:59 -0700)
commit38c3f112c383d1f61a3e2d2d4ff589a5ca570944
tree5bb7af3226c8a0118740f3f8662bd53216c1f87d
parent9fcebd38b5f8f733ed74b9724477381617f19711
[3.15] gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common (gh-149164) (gh-153814)

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

(cherry picked from commit f62050d65743f0c895f7e6d665936c4e86aa39d5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Misc/NEWS.d/next/Core_and_Builtins/2026-04-29-15-10-59.gh-issue-149162.BPPyrq.rst [new file with mode: 0644]
Objects/unicodeobject.c