diff options
author | Sam Gross <colesbury@gmail.com> | 2023-11-16 19:19:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 19:19:54 (GMT) |
commit | 446f18a911916eabd2c0ceed0c2a109fc8480727 (patch) | |
tree | dfe463feacf3aed8db9f622d649e8221b4101e03 /Python/pystate.c | |
parent | f66afa395a6d06097ad1ca222ed076e18a7a8126 (diff) | |
download | cpython-446f18a911916eabd2c0ceed0c2a109fc8480727.zip cpython-446f18a911916eabd2c0ceed0c2a109fc8480727.tar.gz cpython-446f18a911916eabd2c0ceed0c2a109fc8480727.tar.bz2 |
gh-111956: Add thread-safe one-time initialization. (gh-111960)
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 991d8d2..89e9bdd 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -379,12 +379,11 @@ _Py_COMP_DIAG_IGNORE_DEPR_DECLS static const _PyRuntimeState initial = _PyRuntimeState_INIT(_PyRuntime); _Py_COMP_DIAG_POP -#define NUMLOCKS 9 +#define NUMLOCKS 8 #define LOCKS_INIT(runtime) \ { \ &(runtime)->interpreters.mutex, \ &(runtime)->xi.registry.mutex, \ - &(runtime)->getargs.mutex, \ &(runtime)->unicode_state.ids.lock, \ &(runtime)->imports.extensions.mutex, \ &(runtime)->ceval.pending_mainthread.lock, \ |