Home
last modified time | relevance | path

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

/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/Include/
Dobject.h107 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/
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/llvm-project/lldb/unittests/ScriptInterpreter/Python/
DPythonDataObjectsTests.cpp54 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/
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)
Dtypeobj.rst57 .. 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.c38 if (args->ob_refcnt > 1) { in functools_reduce()
D_elementtree.c99 #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
/external/python/cpython3/Doc/c-api/
Dstructures.rst90 This macro is used to access the :attr:`ob_refcnt` member of a Python
94 (((PyObject*)(o))->ob_refcnt)
Dtypeobj.rst500 .. 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/
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()
Dbltinmodule.c278 if (PyList_Check(seq) && seq->ob_refcnt == 1) { in builtin_filter()
Dimport.c509 if (value->ob_refcnt != 1) in PyImport_Cleanup()
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1305 if (result->ob_refcnt == 1) { in s_get()
/external/llvm-project/lldb/bindings/python/
Dpython-wrapper.swig147 if (pfunc_impl->ob_refcnt == 1)
/external/python/cffi/c/
D_cffi_backend.c4408 ((PyObject *)x)->ob_refcnt--; in get_unique_type()