gh-112075: Make _PyDict_LoadGlobal thread safe (#117529)

Make _PyDict_LoadGlobal threadsafe
This commit is contained in:
Dino Viehland 2024-04-04 12:26:07 -07:00 committed by GitHub
parent 42205143f8
commit 434bc593df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 23 additions and 29 deletions

View file

@ -1427,7 +1427,6 @@ dummy_func(
}
ERROR_IF(true, error);
}
Py_INCREF(res);
}
else {
/* Slow-path if globals or builtins is not a dict */