summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorDino Viehland <dinoviehland@meta.com>2024-02-16 00:28:31 (GMT)
committerGitHub <noreply@github.com>2024-02-16 00:28:31 (GMT)
commit454d7963e31cded1de3a90642da7259848efd232 (patch)
tree4cb187f9ef42453b580095af98f9c094e4a70f30 /Python
parentbce693111bff906ccf9281c22371331aaff766ab (diff)
downloadcpython-454d7963e31cded1de3a90642da7259848efd232.zip
cpython-454d7963e31cded1de3a90642da7259848efd232.tar.gz
cpython-454d7963e31cded1de3a90642da7259848efd232.tar.bz2
gh-113743: Use per-interpreter locks for types (#115541)
Move type-lock to per-interpreter lock to avoid heavy contention in interpreters test
Diffstat (limited to 'Python')
-rw-r--r--Python/pystate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index b1d1a08..24f9b77 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -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