]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36854: gcmodule.c gets its state from tstate (GH-17285)
authorVictor Stinner <vstinner@python.org>
Wed, 20 Nov 2019 10:48:18 +0000 (11:48 +0100)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2019 10:48:18 +0000 (11:48 +0100)
commit67e0de6f0b060ac8f373952f0ca4b3117ad5b611
tree43d5fab7d2fe3db5040fdd444b8ef205d9ff685e
parent9da7430675ceaeae5abeb9c9f7cd552b71b3a93a
bpo-36854: gcmodule.c gets its state from tstate (GH-17285)

* Add GCState type for readability
* gcmodule.c now gets its gcstate from tstate
* _PyGC_DumpShutdownStats() now expects tstate rather than runtime
* Rename "state" to "gcstate" for readability: to avoid confusion
  between "state" and "tstate" for example.
* collect() now only expects tstate: it gets gcstate from tstate.
* Pass tstate to _PyErr_xxx() functions
Include/internal/pycore_object.h
Include/internal/pycore_pylifecycle.h
Modules/gcmodule.c
Python/import.c