| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…nder free threading (pythongh-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 ac8ba0c) Co-authored-by: Peter Hawkins <phawkins@google.com>
| Back | FazBrowse Home | New Git URL |
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 ac8ba0c)
Co-authored-by: Peter Hawkins phawkins@google.com