Skip to content

Commit

Permalink
Address code review
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Jan 26, 2024
1 parent 4f7d921 commit 9239cdc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Objects/floatobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,9 @@ _PyFloat_Fini(_PyFreeListState *state)
// With Py_GIL_DISABLED:
// See `_Py_ClearFreeLists()` about why we only need to clear the freelists
// for the current thread state.
#ifndef Py_GIL_DISABLED
_PyFloat_ClearFreeList(state, 1);
#endif
}

void
Expand Down
2 changes: 2 additions & 0 deletions Objects/genobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,9 @@ _PyAsyncGen_Fini(_PyFreeListState *state)
// With Py_GIL_DISABLED:
// See `_Py_ClearFreeLists()` about why we only need to clear the freelists
// for the current thread state.
#ifndef Py_GIL_DISABLED
_PyAsyncGen_ClearFreeLists(state, 1);
#endif
}


Expand Down
2 changes: 2 additions & 0 deletions Objects/listobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ _PyList_Fini(_PyFreeListState *state)
// With Py_GIL_DISABLED:
// See `_Py_ClearFreeLists()` about why we only need to clear the freelists
// for the current thread state.
#ifndef Py_GIL_DISABLED
_PyList_ClearFreeList(state, 1);
#endif
}

/* Print summary info about the state of the optimized allocator */
Expand Down
2 changes: 2 additions & 0 deletions Python/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,9 @@ _PyContext_Fini(_PyFreeListState *state)
// With Py_GIL_DISABLED:
// See `_Py_ClearFreeLists()` about why we only need to clear the freelists
// for the current thread state.
#ifndef Py_GIL_DISABLED
_PyContext_ClearFreeList(state, 1);
#endif
}


Expand Down

0 comments on commit 9239cdc

Please sign in to comment.