/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.13.13
Python/gc_gil.c
17 строк
481 B
Donghee Na
gh-111968: Rename freelist related struct names to Eric's suggestion (gh-115329)
14 фев 2024, 03:32
Не верифицирован
14 фев 2024, 03:32
f15795c
Код
Авторство
О чём код?
#include "Python.h" #include "pycore_pystate.h" // _Py_ClearFreeLists() #ifndef Py_GIL_DISABLED /* Clear all free lists * All free lists are cleared during the collection of the highest generation. * Allocated items in the free list may keep a pymalloc arena occupied. * Clearing the free lists may give back memory to the OS earlier. */ void _PyGC_ClearAllFreeLists(PyInterpreterState *interp) { _PyObject_ClearFreeLists(&interp->object_state.freelists, 0); } #endif