]> granicus.if.org Git - python/commit
bpo-35081: Move _PyGC_FINALIZED() back to C API (GH-10626)
authorVictor Stinner <vstinner@redhat.com>
Tue, 20 Nov 2018 23:43:09 +0000 (00:43 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Nov 2018 23:43:09 +0000 (00:43 +0100)
commit3e21ad1a254cc33e8d4920ad7f026254ec728bee
treeab186540595bbf2651c60f6c5a70a0007148372e
parentc8fe9ccf7bfbcf9a2cb48e3b6abacf6ec0e5e58d
bpo-35081: Move _PyGC_FINALIZED() back to C API (GH-10626)

Partially revert commit 1a6be91e6fd65ce9cb88cbbbb193db7e92ec6076,
move back PyGC API from the internal API to the C API:

* _PyGCHead_NEXT(g), _PyGCHead_SET_NEXT(g, p)
* _PyGCHead_PREV(g), _PyGCHead_SET_PREV(g, p)
* _PyGCHead_FINALIZED(g), _PyGCHead_SET_FINALIZED(g)
* _PyGC_FINALIZED(o), _PyGC_SET_FINALIZED(o)
* _PyGC_PREV_MASK_FINALIZED
* _PyGC_PREV_MASK_COLLECTING
* _PyGC_PREV_SHIFT
* _PyGC_PREV_MASK

_PyObject_GC_TRACK(o) and _PyObject_GC_UNTRACK(o) remain in the
internal API.
Include/objimpl.h