mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
a7e81fdfc1
Release the GIL before calling `_Py_qsbr_unregister`.
The deadlock could occur when the GIL was enabled at runtime. The
`_Py_qsbr_unregister` call might block while holding the GIL because the
thread state was not active, but the GIL was still held.
(cherry picked from commit 078b8c8cf2)
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miscellaneous source files for the main Python shared library