Searched refs:gc_refs (Results 1 – 10 of 10) sorted by relevance
213 #define IS_TRACKED(o) ((AS_GC(o))->gc.gc_refs != GC_UNTRACKED)214 #define IS_REACHABLE(o) ((AS_GC(o))->gc.gc_refs == GC_REACHABLE)216 (AS_GC(o))->gc.gc_refs == GC_TENTATIVELY_UNREACHABLE)331 assert(gc->gc.gc_refs == GC_REACHABLE); in update_refs()332 gc->gc.gc_refs = Py_REFCNT(FROM_GC(gc)); in update_refs()351 assert(gc->gc.gc_refs != 0); in update_refs()366 assert(gc->gc.gc_refs != 0); /* else refcount was too small */ in visit_decref()367 if (gc->gc.gc_refs > 0) in visit_decref()368 gc->gc.gc_refs--; in visit_decref()397 const Py_ssize_t gc_refs = gc->gc.gc_refs; in visit_reachable() local[all …]
256 Py_ssize_t gc_refs; member271 #define _PyGCHead_REFS(g) ((g)->gc.gc_refs >> _PyGC_REFS_SHIFT)273 (g)->gc.gc_refs = ((g)->gc.gc_refs & ~_PyGC_REFS_MASK) \276 #define _PyGCHead_DECREF(g) ((g)->gc.gc_refs -= 1 << _PyGC_REFS_SHIFT)278 #define _PyGCHead_FINALIZED(g) (((g)->gc.gc_refs & _PyGC_REFS_MASK_FINALIZED) != 0)280 (g)->gc.gc_refs = ((g)->gc.gc_refs & ~_PyGC_REFS_MASK_FINALIZED) \
260 Py_ssize_t gc_refs; member270 Py_ssize_t gc_refs; member288 if (g->gc.gc_refs != _PyGC_REFS_UNTRACKED) \290 g->gc.gc_refs = _PyGC_REFS_REACHABLE; \303 assert(g->gc.gc_refs != _PyGC_REFS_UNTRACKED); \304 g->gc.gc_refs = _PyGC_REFS_UNTRACKED; \312 ((_Py_AS_GC(o))->gc.gc_refs != _PyGC_REFS_UNTRACKED)
10 long gc_refs; member
10 Py_ssize_t gc_refs; member
308 const Py_ssize_t gc_refs = _PyGCHead_REFS(gc); in visit_reachable() local310 if (gc_refs == 0) { in visit_reachable()318 else if (gc_refs == GC_TENTATIVELY_UNREACHABLE) { in visit_reachable()337 assert(gc_refs > 0 in visit_reachable()338 || gc_refs == GC_REACHABLE in visit_reachable()339 || gc_refs == GC_UNTRACKED); in visit_reachable()1699 g->gc.gc_refs = 0; in _PyObject_GC_Alloc()
3220 _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); in slot_tp_del()
194 _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); in gen_del()
2447 assert(_Py_AS_GC(op)->gc.gc_refs == _PyGC_REFS_UNTRACKED); in _PyTrash_deposit_object()2459 assert(_Py_AS_GC(op)->gc.gc_refs == _PyGC_REFS_UNTRACKED); in _PyTrash_thread_deposit_object()
5962 _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED);