MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_gc_generation

Method set_gc_generation

crates/vm/src/object/core.rs:1578–1580  ·  view source on GitHub ↗
(&self, generation: u8)

Source from the content-addressed store, hash-verified

1576 /// Must only be called while holding the generation list's write lock.
1577 #[inline]
1578 pub(crate) fn set_gc_generation(&self, generation: u8) {
1579 self.0.gc_generation.store(generation, Ordering::Relaxed);
1580 }
1581
1582 /// _PyObject_GC_TRACK
1583 #[inline]

Callers 5

track_objectMethod · 0.80
untrack_objectMethod · 0.80
promote_survivorsMethod · 0.80
freezeMethod · 0.80
unfreezeMethod · 0.80

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected