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

Method gc_generation

crates/vm/src/object/core.rs:1571–1573  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1569 /// Get the GC generation index for this object.
1570 #[inline]
1571 pub(crate) fn gc_generation(&self) -> u8 {
1572 self.0.gc_generation.load(Ordering::Relaxed)
1573 }
1574
1575 /// Set the GC generation index for this object.
1576 /// Must only be called while holding the generation list's write lock.

Callers 2

untrack_objectMethod · 0.80
promote_survivorsMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected