]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-132917: Check resident set size (RSS) before GC trigger. (gh-133399)
authorNeil Schemenauer <nas-github@arctrix.com>
Mon, 5 May 2025 17:17:05 +0000 (10:17 -0700)
committerGitHub <noreply@github.com>
Mon, 5 May 2025 17:17:05 +0000 (17:17 +0000)
commit5c245ffce71b5a23e0022bb5d1eaf645fe96ddbb
tree492197325b25c4fa58ef1aa2d8e291d8b289b739
parent8e08ac9f32d89bf387c75bb6d0710a7b59026b5b
gh-132917: Check resident set size (RSS) before GC trigger. (gh-133399)

For the free-threaded build, check the process resident set size (RSS)
increase before triggering a full automatic garbage collection.  If the RSS
has not increased 10% since the last collection then it is deferred.
Doc/library/gc.rst
Include/internal/pycore_interp_structs.h
Misc/NEWS.d/next/Core_and_Builtins/2025-05-04-14-47-26.gh-issue-132917.DrEU1y.rst [new file with mode: 0644]
Python/gc_free_threading.c