mirror of
https://github.com/python/cpython.git
synced 2026-01-27 13:15:25 +00:00
When using threaded applications, there is a high risk of a deadlock in the interpreter. It's a lock ordering deadlock with HEAD_LOCK(&_PyRuntime); and the GIL. By disabling the GC during the _PyThread_CurrentFrames() and _PyThread_CurrentExceptions() calls fixes the issue.
Miscellaneous source files for the main Python shared library