Open
Description
This the twin to #96458, and the same reasoning applies.
If something is static it cannot be deallocated.
AFAICT, this clears subclasses of the static type, and doesn't deallocate the class.
The (class, subclass) relation for static types is an attribute of the interpreter not the class, so _PyStaticType_Dealloc
needs to be renamed, at least.
_PyStaticType_Dealloc
also allocates int
objects, which is problematic during interpreter cleanup, as the MemoryError
cache may be cleared first.