diff options
author | Mark Shannon <mark@hotpy.org> | 2024-03-22 18:43:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 18:43:25 (GMT) |
commit | e28477f214276db941e715eebc8cdfb96c1207d9 (patch) | |
tree | 3eff65768670c3f1ab82f9a6fd68f9c4684e970c /Include/internal | |
parent | e2e0b4b4b92694ba894e02b4a66fd87c166ed10f (diff) | |
download | cpython-e28477f214276db941e715eebc8cdfb96c1207d9.zip cpython-e28477f214276db941e715eebc8cdfb96c1207d9.tar.gz cpython-e28477f214276db941e715eebc8cdfb96c1207d9.tar.bz2 |
GH-117108: Change the size of the GC increment to about 1% of the total heap size. (GH-117120)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_gc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_gc.h b/Include/internal/pycore_gc.h index 9d66e62..e729616 100644 --- a/Include/internal/pycore_gc.h +++ b/Include/internal/pycore_gc.h @@ -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 |