◐ Shell
clean mode source ↗

bpo-35081: Move _PyObject_GC_TRACK() to pycore_object.h by vstinner · Pull Request #10272 · python/cpython

@vstinner

* Create Include/internal/pycore_object.h
* Move _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() macros to
  pycore_object.h
* Remove _PyGC_generation0: replaced with _PyRuntime.gc.generation0
* Replace _PyObject_GC_UNTRACK() with PyObject_GC_UnTrack()
  in _queuemodule.c. The file is compiled without Py_BUILD_CORE.
* Add #include "pycore_object.h" in all C files using
  _PyObject_GC_TRACK() and/or _PyObject_GC_UNTRACK()