gh-112069: Add _PySet_NextEntryRef to be thread-safe. (gh-117990)
This commit is contained in:
@@ -2910,6 +2910,7 @@ _Py_DumpExtensionModules(int fd, PyInterpreterState *interp)
|
||||
Py_ssize_t i = 0;
|
||||
PyObject *item;
|
||||
Py_hash_t hash;
|
||||
// if stdlib_module_names is not NULL, it is always a frozenset.
|
||||
while (_PySet_NextEntry(stdlib_module_names, &i, &item, &hash)) {
|
||||
if (PyUnicode_Check(item)
|
||||
&& PyUnicode_Compare(key, item) == 0)
|
||||
|
||||
Reference in New Issue
Block a user