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

Method gc_finalized

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

Source from the content-addressed store, hash-verified

1550 /// _PyGC_FINALIZED in Py_GIL_DISABLED mode.
1551 #[inline]
1552 pub(crate) fn gc_finalized(&self) -> bool {
1553 GcBits::from_bits_retain(self.0.gc_bits.load(Ordering::Relaxed)).contains(GcBits::FINALIZED)
1554 }
1555
1556 /// Mark the object as finalized. Should be called before __del__.
1557 /// _PyGC_SET_FINALIZED in Py_GIL_DISABLED mode.

Callers 3

is_finalizedFunction · 0.80
drop_slow_innerMethod · 0.80
try_call_finalizerMethod · 0.80

Calls 2

containsMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected