This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ypank
Recipients docs@python, ypank
Date 2020-08-02.08:23:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596356602.24.0.765183997462.issue41455@roundup.psfhosted.org>
In-reply-to
Content
As I can see here https://github.com/python/devguide/blob/master/garbage_collector.rst#collecting-the-oldest-generation

> the GC only triggers a full collection of the oldest generation if the ratio long_lived_pending / long_lived_total is above a given value (hardwired to 25%)

But in the python docs here https://docs.python.org/3.10/library/gc.html#gc.set_threshold

> When the number of allocations minus the number of deallocations exceeds threshold0, collection starts. Initially only generation 0 is examined. If generation 0 has been examined more than threshold1 times since generation 1 has been examined, then generation 1 is examined as well. Similarly, threshold2 controls the number of collections of generation 1 before collecting generation 2.

As I can see here: https://github.com/python/cpython/blob/master/Modules/gcmodule.c#L1456 the first one is correct.

We should probably fix python docs accordingly.
History
Date User Action Args
2020-08-02 08:23:22ypanksetrecipients: + ypank, docs@python
2020-08-02 08:23:22ypanksetmessageid: <1596356602.24.0.765183997462.issue41455@roundup.psfhosted.org>
2020-08-02 08:23:22ypanklinkissue41455 messages
2020-08-02 08:23:21ypankcreate