Files
cpython/Python
Miss Islington (bot)andPeter Hawkins 18ef0f0cb5 [3.14] gh-152075: Avoid lock contention in _Py_Specialize_LoadGlobal under free threading (gh-153720) (#158904)
gh-152075: Avoid lock contention in _Py_Specialize_LoadGlobal under free threading (gh-153720)

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.
(cherry picked from commit ac8ba0ca5a)

Co-authored-by: Peter Hawkins <phawkins@google.com>
2026-10-06 18:47:51 +05:30
..
2009-04-27 20:54:42 +00:00

Miscellaneous source files for the main Python shared library