mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-112075: Make _PyDict_LoadGlobal thread safe (#117529)
Make _PyDict_LoadGlobal threadsafe
This commit is contained in:
parent
42205143f8
commit
434bc593df
6 changed files with 23 additions and 29 deletions
|
@ -1427,7 +1427,6 @@ dummy_func(
|
|||
}
|
||||
ERROR_IF(true, error);
|
||||
}
|
||||
Py_INCREF(res);
|
||||
}
|
||||
else {
|
||||
/* Slow-path if globals or builtins is not a dict */
|
||||
|
|
1
Python/executor_cases.c.h
generated
1
Python/executor_cases.c.h
generated
|
@ -1254,7 +1254,6 @@
|
|||
}
|
||||
if (true) JUMP_TO_ERROR();
|
||||
}
|
||||
Py_INCREF(res);
|
||||
}
|
||||
else {
|
||||
/* Slow-path if globals or builtins is not a dict */
|
||||
|
|
1
Python/generated_cases.c.h
generated
1
Python/generated_cases.c.h
generated
|
@ -4256,7 +4256,6 @@
|
|||
}
|
||||
if (true) goto error;
|
||||
}
|
||||
Py_INCREF(res);
|
||||
}
|
||||
else {
|
||||
/* Slow-path if globals or builtins is not a dict */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue