Home
last modified time | relevance | path

Searched refs:gc_refs (Results 1 – 10 of 10) 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/cpython3/Include/
Dobjimpl.h256 Py_ssize_t gc_refs; member
271 #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) \
/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/cpython3/Modules/
Dgcmodule.c308 const Py_ssize_t gc_refs = _PyGCHead_REFS(gc); in visit_reachable() local
310 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()
D_testcapimodule.c3220 _Py_AS_GC(self)->gc.gc_refs != _PyGC_REFS_UNTRACKED); in slot_tp_del()
/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);