Searched refs:PyGC_Head (Results 1 – 13 of 13) sorted by relevance
72 #define AS_GC(o) ((PyGC_Head *)(o)-1)75 #define FROM_GC(g) ((PyObject *)(((PyGC_Head *)g)+1))78 gc_is_collecting(PyGC_Head *g) in gc_is_collecting()84 gc_clear_collecting(PyGC_Head *g) in gc_clear_collecting()90 gc_get_refs(PyGC_Head *g) in gc_get_refs()96 gc_set_refs(PyGC_Head *g, Py_ssize_t refs) in gc_set_refs()103 gc_reset_refs(PyGC_Head *g, Py_ssize_t refs) in gc_reset_refs()111 gc_decref(PyGC_Head *g) in gc_decref()236 gc_list_init(PyGC_Head *list) in gc_list_init()245 gc_list_is_empty(PyGC_Head *list) in gc_list_is_empty()[all …]
405 PyLong_FromSsize_t(sizeof(PyGC_Head))) < 0) { in PyInit__testinternalcapi()
1465 ptr = (void *)((char *)obj - sizeof(PyGC_Head)); in _tracemalloc__get_object_traceback()1786 ptr = (uintptr_t)((char *)op - sizeof(PyGC_Head)); in _PyTraceMalloc_NewReference()
84 PyGC_Head *gc = _Py_AS_GC(op); in _PyObject_GC_TRACK()91 PyGC_Head *generation0 = interp->gc.generation0; in _PyObject_GC_TRACK()92 PyGC_Head *last = (PyGC_Head*)(generation0->_gc_prev); in _PyObject_GC_TRACK()120 PyGC_Head *gc = _Py_AS_GC(op); in _PyObject_GC_UNTRACK()121 PyGC_Head *prev = _PyGCHead_PREV(gc); in _PyObject_GC_UNTRACK()122 PyGC_Head *next = _PyGCHead_NEXT(gc); in _PyObject_GC_UNTRACK()
20 } PyGC_Head; typedef22 #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;
35 object is allocated at. The argument must be a PyGC_Head*
10 those objects from having their PyGC_Head mutated. In effect, this enables
1121 Move the :c:type:`PyGC_Head` structure to the internal C API.
1173 Reduce ``PyGC_Head`` size from 3 words to 2 words.
2262 ptr = (void *)((char *)obj - sizeof(PyGC_Head)); in _PyObject_AssertFailed()
1737 return ((size_t)size) + sizeof(PyGC_Head); in _PySys_GetSizeOf()
1493 * Removed one ``Py_ssize_t`` member from ``PyGC_Head``. All GC tracked1925 * The ``PyGC_Head`` struct has changed completely. All code that touched the
1353 * The :c:type:`PyGC_Head` structure is now opaque. It is only defined in the