Home
last modified time | relevance | path

Searched refs:_gc_next (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Include/internal/
Dpycore_gc.h15 uintptr_t _gc_next; member
25 #define _PyObject_GC_IS_TRACKED(o) (_Py_AS_GC(o)->_gc_next != 0)
45 #define _PyGCHead_NEXT(g) ((PyGC_Head*)(g)->_gc_next)
46 #define _PyGCHead_SET_NEXT(g, p) ((g)->_gc_next = (uintptr_t)(p))
Dpycore_object.h75 gc->_gc_next = 0; in _PyObject_GC_UNTRACK_impl()
/external/python/cpython3/Modules/
Dgcmodule.c228 list->_gc_next = (uintptr_t)list; in gc_list_init()
234 return (list->_gc_next == (uintptr_t)list); in gc_list_is_empty()
262 node->_gc_next = 0; /* object is not currently tracked */ in gc_list_remove()
367 assert((head->_gc_next & NEXT_MASK_UNREACHABLE) == 0); in validate_list()
389 PyGC_Head *truenext = (PyGC_Head *)(gc->_gc_next & ~NEXT_MASK_UNREACHABLE); in validate_list()
393 assert((gc->_gc_next & NEXT_MASK_UNREACHABLE) == next_value); in validate_list()
495 assert(gc->_gc_next != 0); in visit_reachable()
497 if (gc->_gc_next & NEXT_MASK_UNREACHABLE) { in visit_reachable()
507 PyGC_Head *next = (PyGC_Head*)(gc->_gc_next & ~NEXT_MASK_UNREACHABLE); in visit_reachable()
509 prev->_gc_next & NEXT_MASK_UNREACHABLE); in visit_reachable()
[all …]