Skip to main content

live_interpreter_states

Function live_interpreter_states 

Source
pub fn live_interpreter_states() -> Vec<PyRc<PyGlobalState>> ⓘ
Expand description

All live interpreter states, ordered by id.

Used by the cyclic collector, which must stop every interpreter’s threads (not just the collecting one) because GC-tracked objects from all interpreters share one object graph. Ordering is deterministic so that multiple stop-the-world requesters always take exclusions in the same order.