Home
last modified time | relevance | path

Searched refs:PyGC_Head (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Modules/
Dgcmodule.c73 #define AS_GC(o) ((PyGC_Head *)(o)-1)
76 #define FROM_GC(g) ((PyObject *)(((PyGC_Head *)g)+1))
79 gc_is_collecting(PyGC_Head *g) in gc_is_collecting()
85 gc_clear_collecting(PyGC_Head *g) in gc_clear_collecting()
91 gc_get_refs(PyGC_Head *g) in gc_get_refs()
97 gc_set_refs(PyGC_Head *g, Py_ssize_t refs) in gc_set_refs()
104 gc_reset_refs(PyGC_Head *g, Py_ssize_t refs) in gc_reset_refs()
112 gc_decref(PyGC_Head *g) in gc_decref()
223 gc_list_init(PyGC_Head *list) in gc_list_init()
232 gc_list_is_empty(PyGC_Head *list) in gc_list_is_empty()
[all …]
D_testinternalcapi.c230 PyLong_FromSsize_t(sizeof(PyGC_Head))) < 0) { in PyInit__testinternalcapi()
D_tracemalloc.c1465 ptr = (void *)((char *)obj - sizeof(PyGC_Head)); in _tracemalloc__get_object_traceback()
1786 ptr = (uintptr_t)((char *)op - sizeof(PyGC_Head)); in _PyTraceMalloc_NewReference()
/external/python/cpython2/Modules/
Dgcmodule.c25 #define AS_GC(o) ((PyGC_Head *)(o)-1)
28 #define FROM_GC(g) ((PyObject *)(((PyGC_Head *)g)+1))
33 PyGC_Head head;
50 PyGC_Head *_PyGC_generation0 = GEN_HEAD(0);
221 gc_list_init(PyGC_Head *list) in gc_list_init()
228 gc_list_is_empty(PyGC_Head *list) in gc_list_is_empty()
237 gc_list_append(PyGC_Head *node, PyGC_Head *list)
248 gc_list_remove(PyGC_Head *node) in gc_list_remove()
260 gc_list_move(PyGC_Head *node, PyGC_Head *list) in gc_list_move()
262 PyGC_Head *new_prev; in gc_list_move()
[all …]
D_testcapimodule.c2985 PyModule_AddObject(m, "SIZEOF_PYGC_HEAD", PyInt_FromSsize_t(sizeof(PyGC_Head))); in init_testcapi()
/external/python/cpython3/Include/internal/
Dpycore_object.h36 PyGC_Head *gc = _Py_AS_GC(op); in _PyObject_GC_TRACK_impl()
43 PyGC_Head *generation0 = tstate->interp->gc.generation0; in _PyObject_GC_TRACK_impl()
44 PyGC_Head *last = (PyGC_Head*)(generation0->_gc_prev); in _PyObject_GC_TRACK_impl()
70 PyGC_Head *gc = _Py_AS_GC(op); in _PyObject_GC_UNTRACK_impl()
71 PyGC_Head *prev = _PyGCHead_PREV(gc); in _PyObject_GC_UNTRACK_impl()
72 PyGC_Head *next = _PyGCHead_NEXT(gc); in _PyObject_GC_UNTRACK_impl()
Dpycore_gc.h20 } PyGC_Head; typedef
22 #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1)
45 #define _PyGCHead_NEXT(g) ((PyGC_Head*)(g)->_gc_next)
49 #define _PyGCHead_PREV(g) ((PyGC_Head*)((g)->_gc_prev & _PyGC_PREV_MASK))
114 PyGC_Head head;
141 PyGC_Head *generation0;
/external/python/cpython2/Include/
Dobjimpl.h274 } PyGC_Head; typedef
276 extern PyGC_Head *_PyGC_generation0;
278 #define _Py_AS_GC(o) ((PyGC_Head *)(o)-1)
287 PyGC_Head *g = _Py_AS_GC(o); \
302 PyGC_Head *g = _Py_AS_GC(o); \
/external/clang/test/CodeGen/
D2008-08-07-AlignPadding1.c13 } PyGC_Head; typedef
16 PyGC_Head head;
Dunion-init.c13 } PyGC_Head; typedef
16 PyGC_Head head;
/external/llvm-project/clang/test/CodeGen/
D2008-08-07-AlignPadding1.c13 } PyGC_Head; typedef
16 PyGC_Head head;
Dunion-init.c13 } PyGC_Head; typedef
16 PyGC_Head head;
/external/python/cpython2/Misc/NEWS.d/
D2.7.15.rst7 Tweak the definition of PyGC_Head, so compilers do not believe it is always
/external/python/cpython2/Misc/
Dgdbinit29 # object is allocated at. The argument must be a PyGC_Head*
/external/python/cpython3/Misc/
Dgdbinit35 object is allocated at. The argument must be a PyGC_Head*
/external/python/cpython2/Objects/
Dobject.c2449 _Py_AS_GC(op)->gc.gc_prev = (PyGC_Head *)_PyTrash_delete_later; in _PyTrash_deposit_object()
2461 _Py_AS_GC(op)->gc.gc_prev = (PyGC_Head *) tstate->trash_delete_later; in _PyTrash_thread_deposit_object()
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a2.rst10 those objects from having their PyGC_Head mutated. In effect, this enables
D3.9.0a6.rst1121 Move the :c:type:`PyGC_Head` structure to the internal C API.
D3.8.0a1.rst1173 Reduce ``PyGC_Head`` size from 3 words to 2 words.
/external/python/cpython2/Python/
Dsysmodule.c732 return ((size_t)size) + sizeof(PyGC_Head); in _PySys_GetSizeOf()
/external/python/cpython3/Objects/
Dobject.c2183 ptr = (void *)((char *)obj - sizeof(PyGC_Head)); in _PyObject_AssertFailed()
/external/python/cpython3/Python/
Dsysmodule.c1683 return ((size_t)size) + sizeof(PyGC_Head); in _PySys_GetSizeOf()
/external/python/cpython3/Doc/whatsnew/
D3.8.rst1492 * Removed one ``Py_ssize_t`` member from ``PyGC_Head``. All GC tracked
1924 * The ``PyGC_Head`` struct has changed completely. All code that touched the
D3.9.rst1330 * The :c:type:`PyGC_Head` structure is now opaque. It is only defined in the