mirror of
https://github.com/python/cpython.git
synced 2026-08-01 09:31:29 +08:00
Under high thread concurrency in free-threaded builds, `_Py_Specialize_LoadGlobal` suffers from lock contention when acquiring the critical section mutexes for the `globals` and `builtins` dictionaries during bytecode specialization. This PR skips LOAD_GLOBAL bytecode specialization if acquiring the two object mutexes would block.
Miscellaneous source files for the main Python shared library