Revert gh-127266: avoid data races when updating type slots (gh-131174) (gh-133129)

This is triggering deadlocks in test_opcache.  See GH-133130 for stack trace.
This commit is contained in:
Neil Schemenauer 2025-04-28 23:38:29 -07:00 committed by GitHub
parent 219b1f9d1d
commit eecafc3380
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 112 additions and 233 deletions

View file

@ -667,11 +667,8 @@ struct _Py_interp_cached_objects {
/* object.__reduce__ */
PyObject *objreduce;
#ifndef Py_GIL_DISABLED
/* resolve_slotdups() */
PyObject *type_slots_pname;
pytype_slotdef *type_slots_ptrs[MAX_EQUIV];
#endif
/* TypeVar and related types */
PyTypeObject *generic_type;