/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/Include/ |
D | object.h | 107 Py_ssize_t ob_refcnt; member 123 #define Py_REFCNT(ob) (_PyObject_CAST(ob)->ob_refcnt) 133 ob->ob_refcnt = refcnt; in _Py_SET_REFCNT() 408 op->ob_refcnt++; in _Py_INCREF() 422 if (--op->ob_refcnt != 0) { in _Py_DECREF() 424 if (op->ob_refcnt < 0) { in _Py_DECREF()
|
/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/llvm-project/lldb/unittests/ScriptInterpreter/Python/ |
D | PythonDataObjectsTests.cpp | 54 Py_ssize_t original_refcnt = obj->ob_refcnt; in TEST_F() 59 EXPECT_EQ(original_refcnt, owned_long.get()->ob_refcnt); in TEST_F() 63 EXPECT_EQ(original_refcnt + 1, strong_ref.get()->ob_refcnt); in TEST_F() 67 EXPECT_EQ(original_refcnt, strong_ref.get()->ob_refcnt); in TEST_F() 85 Py_ssize_t original_refcnt = long_value.get()->ob_refcnt; in TEST_F() 89 EXPECT_EQ(original_refcnt + 1, borrowed_long.get()->ob_refcnt); in TEST_F()
|
/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)
|
D | typeobj.rst | 57 .. c:member:: Py_ssize_t PyObject.ob_refcnt 976 :attr:`ob_refcnt` set to ``1`` and :attr:`ob_type` set to the type argument. If
|
/external/python/cpython2/Modules/ |
D | _functoolsmodule.c | 38 if (args->ob_refcnt > 1) { in functools_reduce()
|
D | _elementtree.c | 99 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
|
/external/python/cpython3/Doc/c-api/ |
D | structures.rst | 90 This macro is used to access the :attr:`ob_refcnt` member of a Python 94 (((PyObject*)(o))->ob_refcnt)
|
D | typeobj.rst | 500 .. c:member:: Py_ssize_t PyObject.ob_refcnt 2350 :attr:`ob_refcnt` set to ``1`` and :attr:`ob_type` set to the type argument. If
|
/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()
|
D | bltinmodule.c | 278 if (PyList_Check(seq) && seq->ob_refcnt == 1) { in builtin_filter()
|
D | import.c | 509 if (value->ob_refcnt != 1) in PyImport_Cleanup()
|
/external/python/cpython2/Modules/_ctypes/ |
D | cfield.c | 1305 if (result->ob_refcnt == 1) { in s_get()
|
/external/llvm-project/lldb/bindings/python/ |
D | python-wrapper.swig | 147 if (pfunc_impl->ob_refcnt == 1)
|
/external/python/cffi/c/ |
D | _cffi_backend.c | 4408 ((PyObject *)x)->ob_refcnt--; in get_unique_type()
|