Skip to main content

Module gc_state

Module gc_state 

Source
Expand description

Garbage Collection State and Algorithm

Generational garbage collection using an intrusive doubly-linked list.

Structs§

CollectResult
Result from a single collection run
GcDebugFlags
GC debug flags (see Include/internal/pycore_gc.h)
GcGeneration
One generation’s collection policy and statistics, per interpreter.
GcInterpreterState
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_object should write for the interpreter running now.
gc_state
Get a reference to the GC state.