Home
last modified time | relevance | path

Searched refs:ob_refcnt (Results 1 – 25 of 32) sorted by relevance

12

/external/python/cpython2/Objects/
Dgenobject.c33 if (self->ob_refcnt > 0) in gen_dealloc()
162 assert(self->ob_refcnt == 0); in gen_del()
163 self->ob_refcnt = 1; in gen_del()
181 assert(self->ob_refcnt > 0); in gen_del()
182 if (--self->ob_refcnt == 0) in gen_del()
189 Py_ssize_t refcnt = self->ob_refcnt; in gen_del()
191 self->ob_refcnt = refcnt; in gen_del()
Dobject.c24 total -= o->ob_refcnt; in _Py_GetRefTotal()
27 total -= o->ob_refcnt; in _Py_GetRefTotal()
199 fname, lineno, op, op->ob_refcnt); in _Py_NegativeRefcount()
293 if (op->ob_refcnt <= 0) in internal_print()
298 (long)op->ob_refcnt, op); in internal_print()
358 (long)op->ob_refcnt, in _PyObject_Dump()
2232 op->ob_refcnt = 1; in _Py_NewReference()
2243 if (op->ob_refcnt < 0) in _Py_ForgetReference()
2279 fprintf(fp, "%p [%" PY_FORMAT_SIZE_T "d] ", op, op->ob_refcnt); in _Py_PrintReferences()
2296 op->ob_refcnt, Py_TYPE(op)->tp_name); in _Py_PrintReferenceAddresses()
[all …]
Denumobject.c111 if (result->ob_refcnt == 1) { in enum_next_long()
150 if (result->ob_refcnt == 1) { in enum_next()
Dtypeobject.c943 if (self->ob_refcnt > 0) in subtype_dealloc()
1003 if (self->ob_refcnt > 0) in subtype_dealloc()
5926 assert(self->ob_refcnt == 0);
5927 self->ob_refcnt = 1;
5949 assert(self->ob_refcnt > 0);
5950 if (--self->ob_refcnt == 0)
5957 Py_ssize_t refcnt = self->ob_refcnt;
5959 self->ob_refcnt = refcnt;
Dtupleobject.c140 if (!PyTuple_Check(op) || op->ob_refcnt != 1) { in PyTuple_SetItem()
Dfileobject.c1618 if (result->ob_refcnt == 1) { in PyFile_GetLine()
1641 if (result->ob_refcnt == 1) in PyFile_GetLine()
/external/python/cpython3/Objects/
Dobject.c59 total -= o->ob_refcnt; in _Py_GetRefTotal()
322 if (self->ob_refcnt != 0) { in PyObject_CallFinalizerFromDealloc()
326 self->ob_refcnt = 1; in PyObject_CallFinalizerFromDealloc()
334 self->ob_refcnt > 0, in PyObject_CallFinalizerFromDealloc()
336 if (--self->ob_refcnt == 0) in PyObject_CallFinalizerFromDealloc()
342 refcnt = self->ob_refcnt; in PyObject_CallFinalizerFromDealloc()
344 self->ob_refcnt = refcnt; in PyObject_CallFinalizerFromDealloc()
384 if (op->ob_refcnt <= 0) { in PyObject_Print()
389 (long)op->ob_refcnt, (void *)op); in PyObject_Print()
481 fprintf(stderr, "object refcount : %ld\n", (long)op->ob_refcnt); in _PyObject_Dump()
[all …]
Denumobject.c125 if (result->ob_refcnt == 1) { in enum_next_long()
170 if (result->ob_refcnt == 1) { in enum_next()
Dweakrefobject.c955 || object->ob_refcnt != 0) { in PyObject_ClearWeakRefs()
978 if (((PyObject *)current)->ob_refcnt > 0) in PyObject_ClearWeakRefs()
996 if (((PyObject *)current)->ob_refcnt > 0) in PyObject_ClearWeakRefs()
Dfileobject.c87 if (result->ob_refcnt == 1) in PyFile_GetLine()
Dtupleobject.c167 if (!PyTuple_Check(op) || op->ob_refcnt != 1) { in PyTuple_SetItem()
/external/python/cpython3/Include/
Dobject.h106 Py_ssize_t ob_refcnt; member
121 #define Py_REFCNT(ob) (_PyObject_CAST(ob)->ob_refcnt)
459 op->ob_refcnt++; in _Py_INCREF()
470 if (--op->ob_refcnt != 0) { in _Py_DECREF()
472 if (op->ob_refcnt < 0) { in _Py_DECREF()
/external/python/cpython2/Include/
Dobject.h80 Py_ssize_t ob_refcnt; \
114 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
717 { if (((PyObject*)OP)->ob_refcnt < 0) \
769 ((PyObject*)(op))->ob_refcnt++)
774 --((PyObject*)(op))->ob_refcnt != 0) \
/external/libchrome/third_party/jinja2/
Ddebug.py353 old.ob_refcnt -= 1
358 next.ob_refcnt += 1
/external/python/cpython2/Doc/c-api/
Dstructures.rst48 Py_ssize_t ob_refcnt;
54 Py_ssize_t ob_refcnt;
84 This macro is used to access the :attr:`ob_refcnt` member of a Python
88 (((PyObject*)(o))->ob_refcnt)
/external/python/cpython2/Modules/
D_functoolsmodule.c38 if (args->ob_refcnt > 1) { in functools_reduce()
/external/python/cpython3/Doc/c-api/
Dstructures.rst71 This macro is used to access the :attr:`ob_refcnt` member of a Python
75 (((PyObject*)(o))->ob_refcnt)
/external/python/cpython3/Modules/
D_functoolsmodule.c613 if (args->ob_refcnt > 1) { in functools_reduce()
630 assert(args->ob_refcnt == 1); in functools_reduce()
D_testcapimodule.c3442 assert(self->ob_refcnt == 0); in slot_tp_del()
3443 self->ob_refcnt = 1; in slot_tp_del()
3465 assert(self->ob_refcnt > 0); in slot_tp_del()
3466 if (--self->ob_refcnt == 0) in slot_tp_del()
3473 Py_ssize_t refcnt = self->ob_refcnt; in slot_tp_del()
3475 self->ob_refcnt = refcnt; in slot_tp_del()
/external/python/cpython3/Misc/
DSpecialBuilds.txt16 hold a count of all references, the sum of ob_refcnt across all objects.
/external/python/cpython2/Misc/
DSpecialBuilds.txt16 hold a count of all references, the sum of ob_refcnt across all objects. In a
/external/python/cpython2/Python/
Dsysmodule.c771 return PyInt_FromSsize_t(arg->ob_refcnt); in sys_getrefcount()
Dceval.c5166 if (v->ob_refcnt == 2) { in string_concatenate()
5207 if (v->ob_refcnt == 1 && !PyString_CHECK_INTERNED(v)) { in string_concatenate()
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1305 if (result->ob_refcnt == 1) { in s_get()
/external/python/cpython3/Python/
Dsysmodule.c1653 return object->ob_refcnt; in sys_getrefcount_impl()

12