mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
GH-117108: Change the size of the GC increment to about 1% of the total heap size. (GH-117120)
This commit is contained in:
parent
e2e0b4b4b9
commit
e28477f214
6 changed files with 47 additions and 28 deletions
|
|
@ -282,6 +282,7 @@ struct _gc_runtime_state {
|
|||
/* a list of callbacks to be invoked when collection is performed */
|
||||
PyObject *callbacks;
|
||||
|
||||
Py_ssize_t heap_size;
|
||||
Py_ssize_t work_to_do;
|
||||
/* Which of the old spaces is the visited space */
|
||||
int visited_space;
|
||||
|
|
@ -321,7 +322,7 @@ extern void _PyGC_Unfreeze(PyInterpreterState *interp);
|
|||
/* Number of frozen objects */
|
||||
extern Py_ssize_t _PyGC_GetFreezeCount(PyInterpreterState *interp);
|
||||
|
||||
extern PyObject *_PyGC_GetObjects(PyInterpreterState *interp, Py_ssize_t generation);
|
||||
extern PyObject *_PyGC_GetObjects(PyInterpreterState *interp, int generation);
|
||||
extern PyObject *_PyGC_GetReferrers(PyInterpreterState *interp, PyObject *objs);
|
||||
|
||||
// Functions to clear types free lists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue