Home
last modified time | relevance | path

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

/external/python/cpython3/Include/internal/
Dpycore_gc.h19 uintptr_t _gc_prev; member
49 #define _PyGCHead_PREV(g) ((PyGC_Head*)((g)->_gc_prev & _PyGC_PREV_MASK))
52 (g)->_gc_prev = ((g)->_gc_prev & ~_PyGC_PREV_MASK) \
57 (((g)->_gc_prev & _PyGC_PREV_MASK_FINALIZED) != 0)
59 ((g)->_gc_prev |= _PyGC_PREV_MASK_FINALIZED)
Dpycore_object.h38 (gc->_gc_prev & _PyGC_PREV_MASK_COLLECTING) == 0, in _PyObject_GC_TRACK_impl()
44 PyGC_Head *last = (PyGC_Head*)(generation0->_gc_prev); in _PyObject_GC_TRACK_impl()
48 generation0->_gc_prev = (uintptr_t)gc; in _PyObject_GC_TRACK_impl()
76 gc->_gc_prev &= _PyGC_PREV_MASK_FINALIZED; in _PyObject_GC_UNTRACK_impl()
/external/python/cpython3/Modules/
Dgcmodule.c81 return (g->_gc_prev & PREV_MASK_COLLECTING) != 0; in gc_is_collecting()
87 g->_gc_prev &= ~PREV_MASK_COLLECTING; in gc_clear_collecting()
93 return (Py_ssize_t)(g->_gc_prev >> _PyGC_PREV_SHIFT); in gc_get_refs()
99 g->_gc_prev = (g->_gc_prev & ~_PyGC_PREV_MASK) in gc_set_refs()
106 g->_gc_prev = (g->_gc_prev & _PyGC_PREV_MASK_FINALIZED) in gc_reset_refs()
117 g->_gc_prev -= 1 << _PyGC_PREV_SHIFT; in gc_decref()
227 list->_gc_prev = (uintptr_t)list; in gc_list_init()
241 PyGC_Head *last = (PyGC_Head *)list->_gc_prev; in gc_list_append()
249 list->_gc_prev = (uintptr_t)node; in gc_list_append()
280 PyGC_Head *to_prev = (PyGC_Head*)list->_gc_prev; in gc_list_move()
[all …]