Skip to content

Commit 1e3005d

Browse files
_PyStaticType_Dealloc() -> _PyStaticType_FiniBuiltin()
1 parent 07e3b65 commit 1e3005d

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

Include/internal/pycore_typeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ _PyType_GetModuleState(PyTypeObject *type)
154154
extern int _PyStaticType_InitBuiltin(PyInterpreterState *, PyTypeObject *type);
155155
extern static_builtin_state * _PyStaticType_GetState(PyInterpreterState *, PyTypeObject *);
156156
extern void _PyStaticType_ClearWeakRefs(PyInterpreterState *, PyTypeObject *type);
157-
extern void _PyStaticType_Dealloc(PyInterpreterState *, PyTypeObject *);
157+
extern void _PyStaticType_FiniBuiltin(PyInterpreterState *, PyTypeObject *);
158158

159159
// Export for 'math' shared extension, used via _PyType_IsReady() static inline
160160
// function

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3725,7 +3725,7 @@ _PyExc_FiniTypes(PyInterpreterState *interp)
37253725
{
37263726
for (Py_ssize_t i=Py_ARRAY_LENGTH(static_exceptions) - 1; i >= 0; i--) {
37273727
PyTypeObject *exc = static_exceptions[i].exc;
3728-
_PyStaticType_Dealloc(interp, exc);
3728+
_PyStaticType_FiniBuiltin(interp, exc);
37293729
}
37303730
}
37313731

Objects/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2355,7 +2355,7 @@ _PyTypes_FiniTypes(PyInterpreterState *interp)
23552355
// their base classes.
23562356
for (Py_ssize_t i=Py_ARRAY_LENGTH(static_types)-1; i>=0; i--) {
23572357
PyTypeObject *type = static_types[i];
2358-
_PyStaticType_Dealloc(interp, type);
2358+
_PyStaticType_FiniBuiltin(interp, type);
23592359
}
23602360
}
23612361

Objects/structseq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ _PyStructSequence_FiniBuiltin(PyInterpreterState *interp, PyTypeObject *type)
718718
return;
719719
}
720720

721-
_PyStaticType_Dealloc(interp, type);
721+
_PyStaticType_FiniBuiltin(interp, type);
722722

723723
if (_Py_IsMainInterpreter(interp)) {
724724
// Undo _PyStructSequence_InitBuiltinWithFlags().

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5686,7 +5686,7 @@ clear_static_type_objects(PyInterpreterState *interp, PyTypeObject *type)
56865686
}
56875687

56885688
void
5689-
_PyStaticType_Dealloc(PyInterpreterState *interp, PyTypeObject *type)
5689+
_PyStaticType_FiniBuiltin(PyInterpreterState *interp, PyTypeObject *type)
56905690
{
56915691
assert(type->tp_flags & _Py_TPFLAGS_STATIC_BUILTIN);
56925692
assert(_Py_IsImmortal((PyObject *)type));

Objects/unicodeobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15520,9 +15520,9 @@ unicode_is_finalizing(void)
1552015520
void
1552115521
_PyUnicode_FiniTypes(PyInterpreterState *interp)
1552215522
{
15523-
_PyStaticType_Dealloc(interp, &EncodingMapType);
15524-
_PyStaticType_Dealloc(interp, &PyFieldNameIter_Type);
15525-
_PyStaticType_Dealloc(interp, &PyFormatterIter_Type);
15523+
_PyStaticType_FiniBuiltin(interp, &EncodingMapType);
15524+
_PyStaticType_FiniBuiltin(interp, &PyFieldNameIter_Type);
15525+
_PyStaticType_FiniBuiltin(interp, &PyFormatterIter_Type);
1552615526
}
1552715527

1552815528

Python/crossinterp_exceptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ static void
9090
fini_exceptions(PyInterpreterState *interp)
9191
{
9292
// Likewise with _fini_not_shareable_error_type().
93-
_PyStaticType_Dealloc(interp, &_PyExc_InterpreterNotFoundError);
94-
_PyStaticType_Dealloc(interp, &_PyExc_InterpreterError);
93+
_PyStaticType_FiniBuiltin(interp, &_PyExc_InterpreterNotFoundError);
94+
_PyStaticType_FiniBuiltin(interp, &_PyExc_InterpreterError);
9595
}

0 commit comments

Comments
 (0)