GH-90699: use statically allocated interned strings in typeobject's slotdefs (GH-94706)

This commit is contained in:
Kumar Aditya 2022-09-08 03:32:08 +05:30 committed by GitHub
parent b65686c505
commit 4e4bfffe2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 140 additions and 176 deletions

View file

@ -11,7 +11,6 @@ extern "C" {
/* runtime lifecycle */
extern PyStatus _PyTypes_InitState(PyInterpreterState *);
extern PyStatus _PyTypes_InitTypes(PyInterpreterState *);
extern void _PyTypes_FiniTypes(PyInterpreterState *);
extern void _PyTypes_Fini(PyInterpreterState *);
@ -67,8 +66,6 @@ struct types_state {
};
extern PyStatus _PyTypes_InitSlotDefs(void);
extern int _PyStaticType_InitBuiltin(PyTypeObject *type);
extern static_builtin_state * _PyStaticType_GetState(PyTypeObject *);
extern void _PyStaticType_ClearWeakRefs(PyTypeObject *type);