]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common (gh-149164)
authorSam Gross <colesbury@gmail.com>
Thu, 16 Jul 2026 17:37:00 +0000 (10:37 -0700)
committerGitHub <noreply@github.com>
Thu, 16 Jul 2026 17:37:00 +0000 (10:37 -0700)
commitf62050d65743f0c895f7e6d665936c4e86aa39d5
tree42d3d5efd003bb8adc30783c0a37cfacf44d5e48
parentb090d06e7331c40b3c94e70b35a09f785b279e17
gh-149162: Use _Py_LOCK_DONT_DETACH in intern_common (gh-149164)

Avoids potential deadlocks with C++ static local initialization in
extensions that call PyUnicode_InternFromString during one-time
initialization.
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