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

Method set_gc_bit

crates/vm/src/object/core.rs:1565–1567  ·  view source on GitHub ↗
(&self, bit: GcBits)

Source from the content-addressed store, hash-verified

1563 /// Set a GC bit atomically.
1564 #[inline]
1565 pub(crate) fn set_gc_bit(&self, bit: GcBits) {
1566 self.0.gc_bits.fetch_or(bit.bits(), Ordering::Relaxed);
1567 }
1568
1569 /// Get the GC generation index for this object.
1570 #[inline]

Callers 2

set_gc_finalizedMethod · 0.80
set_gc_trackedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected