/external/python/cpython2/Objects/ |
D | genobject.c | 33 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()
|
D | object.c | 24 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 …]
|
D | enumobject.c | 111 if (result->ob_refcnt == 1) { in enum_next_long() 150 if (result->ob_refcnt == 1) { in enum_next()
|
D | typeobject.c | 943 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;
|
D | tupleobject.c | 140 if (!PyTuple_Check(op) || op->ob_refcnt != 1) { in PyTuple_SetItem()
|
D | fileobject.c | 1618 if (result->ob_refcnt == 1) { in PyFile_GetLine() 1641 if (result->ob_refcnt == 1) in PyFile_GetLine()
|
/external/python/cpython3/Objects/ |
D | object.c | 29 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 …]
|
D | enumobject.c | 125 if (result->ob_refcnt == 1) { in enum_next_long() 170 if (result->ob_refcnt == 1) { in enum_next()
|
D | weakrefobject.c | 893 || 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()
|
D | fileobject.c | 85 if (result->ob_refcnt == 1) in PyFile_GetLine()
|
D | tupleobject.c | 166 if (!PyTuple_Check(op) || op->ob_refcnt != 1) { in PyTuple_SetItem()
|
/external/python/cpython2/Include/ |
D | object.h | 80 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/ |
D | object.h | 108 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/ |
D | debug.py | 353 old.ob_refcnt -= 1 358 next.ob_refcnt += 1
|
/external/python/cpython2/Doc/c-api/ |
D | structures.rst | 48 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.c | 38 if (args->ob_refcnt > 1) { in functools_reduce()
|
/external/python/cpython3/Doc/c-api/ |
D | structures.rst | 71 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.c | 3184 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.c | 613 if (args->ob_refcnt > 1) { in functools_reduce()
|
/external/python/cpython3/Misc/ |
D | SpecialBuilds.txt | 16 hold a count of all references, the sum of ob_refcnt across all objects.
|
/external/python/cpython2/Misc/ |
D | SpecialBuilds.txt | 16 hold a count of all references, the sum of ob_refcnt across all objects. In a
|
/external/python/cpython2/Python/ |
D | sysmodule.c | 771 return PyInt_FromSsize_t(arg->ob_refcnt); in sys_getrefcount()
|
D | ceval.c | 5166 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/ |
D | cfield.c | 1305 if (result->ob_refcnt == 1) { in s_get()
|
/external/python/cpython3/Python/ |
D | sysmodule.c | 1296 return PyLong_FromSsize_t(arg->ob_refcnt); in sys_getrefcount()
|