Home
last modified time | relevance | path

Searched refs:gcstate (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Modules/
Dgcmodule.c128 #define GEN_HEAD(gcstate, n) (&(gcstate)->generations[n].head) argument
140 _PyGC_InitState(GCState *gcstate) in _PyGC_InitState() argument
142 gcstate->enabled = 1; /* automatic collection enabled? */ in _PyGC_InitState()
144 #define _GEN_HEAD(n) GEN_HEAD(gcstate, n) in _PyGC_InitState()
152 gcstate->generations[i] = generations[i]; in _PyGC_InitState()
154 gcstate->generation0 = GEN_HEAD(gcstate, 0); in _PyGC_InitState()
156 {(uintptr_t)&gcstate->permanent_generation.head, in _PyGC_InitState()
157 (uintptr_t)&gcstate->permanent_generation.head}, 0, 0 in _PyGC_InitState()
159 gcstate->permanent_generation = permanent_generation; in _PyGC_InitState()
166 GCState *gcstate = &interp->gc; in _PyGC_Init() local
[all …]
/third_party/python/Objects/
Dobject.c2103 struct _gc_runtime_state *gcstate = &interp->gc; in _PyTrash_deposit_object() local
2108 _PyGCHead_SET_PREV(_Py_AS_GC(op), gcstate->trash_delete_later); in _PyTrash_deposit_object()
2109 gcstate->trash_delete_later = op; in _PyTrash_deposit_object()
2131 struct _gc_runtime_state *gcstate = &interp->gc; in _PyTrash_destroy_chain() local
2133 while (gcstate->trash_delete_later) { in _PyTrash_destroy_chain()
2134 PyObject *op = gcstate->trash_delete_later; in _PyTrash_destroy_chain()
2137 gcstate->trash_delete_later = in _PyTrash_destroy_chain()
2147 ++gcstate->trash_delete_nesting; in _PyTrash_destroy_chain()
2149 --gcstate->trash_delete_nesting; in _PyTrash_destroy_chain()