mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-113743: Use per-interpreter locks for types (#115541)
Move type-lock to per-interpreter lock to avoid heavy contention in interpreters test
This commit is contained in:
parent
bce693111b
commit
454d7963e3
3 changed files with 5 additions and 4 deletions
|
@ -395,7 +395,7 @@ _Py_COMP_DIAG_POP
|
|||
&(runtime)->atexit.mutex, \
|
||||
&(runtime)->audit_hooks.mutex, \
|
||||
&(runtime)->allocators.mutex, \
|
||||
&(runtime)->types.type_mutex, \
|
||||
&(runtime)->_main_interpreter.types.mutex, \
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue