File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55#include " internal/pycore_frame.h"
66#include " internal/pycore_genobject.h"
7+ #include " internal/pycore_object.h" // _PyObject_GC_TRACK()/_PyObject_GC_UNTRACK()
78#include " internal/pycore_pyerrors.h" // _PyErr_ClearExcState()
89
910#include " cinderx/Common/log.h"
@@ -44,18 +45,18 @@ void gen_dealloc_with_custom_free(PyObject* self) {
4445
4546 auto * gen = reinterpret_cast <PyGenObject*>(self);
4647
47- PyObject_GC_UnTrack (gen);
48+ _PyObject_GC_UNTRACK (gen);
4849
4950 if (gen->gi_weakreflist != nullptr ) {
5051 PyObject_ClearWeakRefs (self);
5152 }
5253
5354 // Re-track so the finalizer can run; it may resurrect the object.
54- PyObject_GC_Track (self);
55+ _PyObject_GC_TRACK (self);
5556 if (PyObject_CallFinalizerFromDealloc (self)) {
5657 return ;
5758 }
58- PyObject_GC_UnTrack (self);
59+ _PyObject_GC_UNTRACK (self);
5960
6061 JIT_DCHECK (
6162 !PyAsyncGen_CheckExact (gen),
You can’t perform that action at this time.
0 commit comments