Home
last modified time | relevance | path

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

/third_party/python/Include/internal/
H A Dpycore_gc.h19 uintptr_t _gc_prev; member
35 /* Bit flags for _gc_prev */
49 // Lowest two bits of _gc_prev is used for _PyGC_PREV_MASK_* flags.
50 #define _PyGCHead_PREV(g) ((PyGC_Head*)((g)->_gc_prev & _PyGC_PREV_MASK))
53 (g)->_gc_prev = ((g)->_gc_prev & ~_PyGC_PREV_MASK) \
58 (((g)->_gc_prev & _PyGC_PREV_MASK_FINALIZED) != 0)
60 _Py_RVALUE((g)->_gc_prev |= _PyGC_PREV_MASK_FINALIZED)
H A Dpycore_object.h115 * Internal note: interp->gc.generation0->_gc_prev doesn't have any bit flags
134 (gc->_gc_prev & _PyGC_PREV_MASK_COLLECTING) == 0, in _PyObject_GC_TRACK()
140 PyGC_Head *last = (PyGC_Head*)(generation0->_gc_prev); in _PyObject_GC_TRACK()
144 generation0->_gc_prev = (uintptr_t)gc; in _PyObject_GC_TRACK()
174 gc->_gc_prev &= _PyGC_PREV_MASK_FINALIZED; in _PyObject_GC_UNTRACK()
/third_party/python/Modules/
H A Dgcmodule.c80 return (g->_gc_prev & PREV_MASK_COLLECTING) != 0; in gc_is_collecting()
86 g->_gc_prev &= ~PREV_MASK_COLLECTING; in gc_clear_collecting()
92 return (Py_ssize_t)(g->_gc_prev >> _PyGC_PREV_SHIFT); in gc_get_refs()
98 g->_gc_prev = (g->_gc_prev & ~_PyGC_PREV_MASK) in gc_set_refs()
105 g->_gc_prev = (g->_gc_prev & _PyGC_PREV_MASK_FINALIZED) in gc_reset_refs()
116 g->_gc_prev -= 1 << _PyGC_PREV_SHIFT; in gc_decref()
145 GEN.head._gc_prev = (uintptr_t)&GEN.head; \ in _PyGC_InitState()
179 _gc_prev value
[all...]

Completed in 4 milliseconds