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

Method is_gc_tracked

crates/vm/src/object/core.rs:1678–1680  ·  view source on GitHub ↗

_PyObject_GC_IS_TRACKED

(&self)

Source from the content-addressed store, hash-verified

1676
1677 /// _PyObject_GC_IS_TRACKED
1678 pub fn is_gc_tracked(&self) -> bool {
1679 GcBits::from_bits_retain(self.0.gc_bits.load(Ordering::Relaxed)).contains(GcBits::TRACKED)
1680 }
1681
1682 /// Get the referents (objects directly referenced) of this object.
1683 /// Uses the full traverse including dict and slots.

Callers 4

collect_innerMethod · 0.80
promote_survivorsMethod · 0.80
is_trackedFunction · 0.80
default_deallocFunction · 0.80

Calls 2

containsMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected