]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42208: Pass tstate to _PyGC_CollectNoFail() (GH-23038)
authorVictor Stinner <vstinner@python.org>
Fri, 30 Oct 2020 16:00:00 +0000 (17:00 +0100)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 16:00:00 +0000 (17:00 +0100)
commit8b3414818f5289eac530bf38bcfbd7b2b851805c
tree7ca16e738927f6dd4be87aed29ae3a06817f9c3b
parent99608c733c5960f7834adca933c02f6ddf9b1df9
bpo-42208: Pass tstate to _PyGC_CollectNoFail() (GH-23038)

Move private _PyGC_CollectNoFail() to the internal C API.

Remove the private _PyGC_CollectIfEnabled() which was just an alias
to the public PyGC_Collect() function since Python 3.8.

Rename functions:

* collect() => gc_collect_main()
* collect_with_callback() => gc_collect_with_callback()
* collect_generations() => gc_collect_generations()
Include/cpython/objimpl.h
Include/internal/pycore_gc.h
Modules/gcmodule.c
Python/import.c
Python/pylifecycle.c