Home
last modified time | relevance | path

Searched refs:gc_refs (Results 1 – 8 of 8) sorted by relevance

/external/python/cpython2/Modules/
Dgcmodule.c213 #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 …]
/external/python/cpython2/Include/
Dobjimpl.h260 Py_ssize_t gc_refs; member
270 Py_ssize_t gc_refs; member
288 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)
/external/clang/test/CodeGen/
D2008-08-07-AlignPadding1.c10 long gc_refs; member
Dunion-init.c10 Py_ssize_t gc_refs; member
/external/python/cpython2/Objects/
Dgenobject.c194 _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); in gen_del()
Dobject.c2447 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()
Dtypeobject.c5962 _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED);
/external/python/cpython3/Modules/
Dgcmodule.c421 const Py_ssize_t gc_refs = gc_get_refs(gc); in visit_reachable() local
448 else if (gc_refs == 0) { in visit_reachable()
461 _PyObject_ASSERT_WITH_MSG(op, gc_refs > 0, "refcount is too small"); in visit_reachable()