Skip to content

Commit 4a76399

Browse files
committed
Revert _PyDict_Fini
1 parent e1d9549 commit 4a76399

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Include/internal/pycore_dict.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extern PyObject* _PyDictView_Intersect(PyObject* self, PyObject *other);
7070

7171
/* runtime lifecycle */
7272

73-
extern void _PyDict_Fini(_PyFreeListState *state);
73+
extern void _PyDict_Fini(PyInterpreterState *state);
7474

7575

7676
/* other API */

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ _PyDict_ClearFreeList(_PyFreeListState *freelist_state, int is_finalization)
274274
}
275275

276276
void
277-
_PyDict_Fini(_PyFreeListState *freelist_state)
277+
_PyDict_Fini(PyInterpreterState *interp)
278278
{
279279
// With Py_GIL_DISABLED:
280280
// the freelists for the current thread state have already been cleared.

Python/pylifecycle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,12 +1782,12 @@ finalize_interp_types(PyInterpreterState *interp)
17821782
// a dict internally.
17831783
_PyUnicode_ClearInterned(interp);
17841784

1785+
_PyDict_Fini(interp);
17851786
_PyUnicode_Fini(interp);
17861787

17871788
_PyFreeListState *state = _PyFreeListState_GET();
17881789
_PyTuple_Fini(state);
17891790
_PyList_Fini(state);
1790-
_PyDict_Fini(state);
17911791
_PyFloat_Fini(state);
17921792
_PySlice_Fini(state);
17931793
_PyContext_Fini(state);

0 commit comments

Comments
 (0)