Home
last modified time | relevance | path

Searched refs:ob_refcnt (Results 1 – 25 of 31) 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.c29 total -= o->ob_refcnt; in _Py_GetRefTotal()
210 fname, lineno, op, op->ob_refcnt); in _Py_NegativeRefcount()
297 if (self->ob_refcnt != 0) { in PyObject_CallFinalizerFromDealloc()
301 self->ob_refcnt = 1; in PyObject_CallFinalizerFromDealloc()
308 assert(self->ob_refcnt > 0); in PyObject_CallFinalizerFromDealloc()
309 if (--self->ob_refcnt == 0) in PyObject_CallFinalizerFromDealloc()
315 refcnt = self->ob_refcnt; in PyObject_CallFinalizerFromDealloc()
317 self->ob_refcnt = refcnt; in PyObject_CallFinalizerFromDealloc()
357 if (op->ob_refcnt <= 0) in PyObject_Print()
362 (long)op->ob_refcnt, op); in PyObject_Print()
[all …]
Denumobject.c125 if (result->ob_refcnt == 1) { in enum_next_long()
170 if (result->ob_refcnt == 1) { in enum_next()
Dweakrefobject.c893 || object->ob_refcnt != 0) { in PyObject_ClearWeakRefs()
916 if (((PyObject *)current)->ob_refcnt > 0) in PyObject_ClearWeakRefs()
934 if (((PyObject *)current)->ob_refcnt > 0) in PyObject_ClearWeakRefs()
Dfileobject.c85 if (result->ob_refcnt == 1) in PyFile_GetLine()
Dtupleobject.c166 if (!PyTuple_Check(op) || op->ob_refcnt != 1) { in PyTuple_SetItem()
/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/python/cpython3/Include/
Dobject.h108 Py_ssize_t ob_refcnt; member
117 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
736 { if (((PyObject*)OP)->ob_refcnt < 0) \
796 ((PyObject *)(op))->ob_refcnt++)
802 --(_py_decref_tmp)->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_testcapimodule.c3184 assert(self->ob_refcnt == 0); in slot_tp_del()
3185 self->ob_refcnt = 1; in slot_tp_del()
3207 assert(self->ob_refcnt > 0); in slot_tp_del()
3208 if (--self->ob_refcnt == 0) in slot_tp_del()
3215 Py_ssize_t refcnt = self->ob_refcnt; in slot_tp_del()
3217 self->ob_refcnt = refcnt; in slot_tp_del()
D_functoolsmodule.c613 if (args->ob_refcnt > 1) { in functools_reduce()
/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.c1296 return PyLong_FromSsize_t(arg->ob_refcnt); in sys_getrefcount()

12