mirror of
https://github.com/python/cpython.git
synced 2026-08-03 10:30:28 +08:00
In `_Py_dict_lookup_threadsafe_stackref`, call `ensure_shared_on_read()` to prevent a race between the lookup and concurrent dict resizes, which may free the PyDictKeysObject (i.e., it ensures that the resize uses QSBR). (cherry picked from commit e666a01ef42939f77f4c22ca47a610df5ef8b7ab)
Source files for various builtin objects