Lines Matching refs:PyGC_Head

40 #define AS_GC(o) ((PyGC_Head *)(o)-1)
43 #define FROM_GC(g) ((PyObject *)(((PyGC_Head *)g)+1))
132 gc_list_init(PyGC_Head *list) in gc_list_init()
139 gc_list_is_empty(PyGC_Head *list) in gc_list_is_empty()
148 gc_list_append(PyGC_Head *node, PyGC_Head *list)
159 gc_list_remove(PyGC_Head *node) in gc_list_remove()
171 gc_list_move(PyGC_Head *node, PyGC_Head *list) in gc_list_move()
173 PyGC_Head *new_prev; in gc_list_move()
174 PyGC_Head *current_prev = node->gc.gc_prev; in gc_list_move()
175 PyGC_Head *current_next = node->gc.gc_next; in gc_list_move()
187 gc_list_merge(PyGC_Head *from, PyGC_Head *to) in gc_list_merge()
189 PyGC_Head *tail; in gc_list_merge()
202 gc_list_size(PyGC_Head *list) in gc_list_size()
204 PyGC_Head *gc; in gc_list_size()
216 append_objects(PyObject *py_list, PyGC_Head *gc_list) in append_objects()
218 PyGC_Head *gc; in append_objects()
238 update_refs(PyGC_Head *containers) in update_refs()
240 PyGC_Head *gc = containers->gc.gc_next; in update_refs()
272 PyGC_Head *gc = AS_GC(op); in visit_decref()
290 subtract_refs(PyGC_Head *containers) in subtract_refs()
293 PyGC_Head *gc = containers->gc.gc_next; in subtract_refs()
304 visit_reachable(PyObject *op, PyGC_Head *reachable) in visit_reachable()
307 PyGC_Head *gc = AS_GC(op); in visit_reachable()
354 move_unreachable(PyGC_Head *young, PyGC_Head *unreachable) in move_unreachable()
356 PyGC_Head *gc = young->gc.gc_next; in move_unreachable()
368 PyGC_Head *next; in move_unreachable()
409 untrack_dicts(PyGC_Head *head) in untrack_dicts()
411 PyGC_Head *next, *gc = head->gc.gc_next; in untrack_dicts()
433 move_legacy_finalizers(PyGC_Head *unreachable, PyGC_Head *finalizers) in move_legacy_finalizers()
435 PyGC_Head *gc; in move_legacy_finalizers()
436 PyGC_Head *next; in move_legacy_finalizers()
456 visit_move(PyObject *op, PyGC_Head *tolist) in visit_move()
460 PyGC_Head *gc = AS_GC(op); in visit_move()
472 move_legacy_finalizer_reachable(PyGC_Head *finalizers) in move_legacy_finalizer_reachable()
475 PyGC_Head *gc = finalizers->gc.gc_next; in move_legacy_finalizer_reachable()
497 handle_weakrefs(PyGC_Head *unreachable, PyGC_Head *old) in handle_weakrefs()
499 PyGC_Head *gc; in handle_weakrefs()
502 PyGC_Head wrcb_to_call; /* weakrefs with callbacks to call */ in handle_weakrefs()
503 PyGC_Head *next; in handle_weakrefs()
535 PyGC_Head *wrasgc; /* AS_GC(wr) */ in handle_weakrefs()
653 handle_legacy_finalizers(PyGC_Head *finalizers, PyGC_Head *old) in handle_legacy_finalizers()
655 PyGC_Head *gc = finalizers->gc.gc_next; in handle_legacy_finalizers()
679 finalize_garbage(PyGC_Head *collectable) in finalize_garbage()
682 PyGC_Head seen; in finalize_garbage()
695 PyGC_Head *gc = collectable->gc.gc_next; in finalize_garbage()
714 check_garbage(PyGC_Head *collectable) in check_garbage()
716 PyGC_Head *gc; in check_garbage()
733 revive_garbage(PyGC_Head *collectable) in revive_garbage()
735 PyGC_Head *gc; in revive_garbage()
747 delete_garbage(PyGC_Head *collectable, PyGC_Head *old) in delete_garbage()
752 PyGC_Head *gc = collectable->gc.gc_next; in delete_garbage()
803 PyGC_Head *young; /* the generation we are examining */ in collect()
804 PyGC_Head *old; /* next older generation */ in collect()
805 PyGC_Head unreachable; /* non-problematic unreachable trash */ in collect()
806 PyGC_Head finalizers; /* objects with, & reachable from, __del__ */ in collect()
807 PyGC_Head *gc; in collect()
1243 gc_referrers_for(PyObject *objs, PyGC_Head *list, PyObject *resultlist) in gc_referrers_for()
1245 PyGC_Head *gc; in gc_referrers_for()
1655 _PyGC_Dump(PyGC_Head *g) in _PyGC_Dump()
1688 PyGC_Head *g; in _PyObject_GC_Alloc()
1690 if (basicsize > PY_SSIZE_T_MAX - sizeof(PyGC_Head)) in _PyObject_GC_Alloc()
1692 size = sizeof(PyGC_Head) + basicsize; in _PyObject_GC_Alloc()
1694 g = (PyGC_Head *)PyObject_Calloc(1, size); in _PyObject_GC_Alloc()
1696 g = (PyGC_Head *)PyObject_Malloc(size); in _PyObject_GC_Alloc()
1757 PyGC_Head *g = AS_GC(op); in _PyObject_GC_Resize()
1759 if (basicsize > PY_SSIZE_T_MAX - sizeof(PyGC_Head)) in _PyObject_GC_Resize()
1761 g = (PyGC_Head *)PyObject_REALLOC(g, sizeof(PyGC_Head) + basicsize); in _PyObject_GC_Resize()
1772 PyGC_Head *g = AS_GC(op); in PyObject_GC_Del()