Expand description
Garbage Collection State and Algorithm
Generational garbage collection using an intrusive doubly-linked list.
Structs§
- Collect
Result - Result from a single collection run
- GcDebug
Flags - GC debug flags (see Include/internal/pycore_gc.h)
- GcGeneration
- One generation’s collection policy and statistics, per interpreter.
- GcInterpreter
State - Per-interpreter garbage collector state (≈
PyInterpreterState.gc). - GcState
- The process-wide object lists every interpreter’s collections walk.
- GcStats
- Statistics for a single generation (gc_generation_stats)
Functions§
- current_
owner - The tag
track_objectshould write for the interpreter running now. - gc_
state - Get a reference to the GC state.