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

Method mark_intern

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

# Safety This call will make the object live forever.

(&self)

Source from the content-addressed store, hash-verified

1659 /// # Safety
1660 /// This call will make the object live forever.
1661 pub(crate) unsafe fn mark_intern(&self) {
1662 self.0.ref_count.leak();
1663 }
1664
1665 pub(crate) fn is_interned(&self) -> bool {
1666 self.0.ref_count.is_leaked()

Callers 1

missMethod · 0.80

Calls 1

leakMethod · 0.45

Tested by

no test coverage detected