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

Method collect_force

crates/vm/src/gc_state.rs:380–382  ·  view source on GitHub ↗

Force collection even if GC is disabled (for manual gc.collect() calls)

(&self, generation: usize)

Source from the content-addressed store, hash-verified

378
379 /// Force collection even if GC is disabled (for manual gc.collect() calls)
380 pub fn collect_force(&self, generation: usize) -> CollectResult {
381 self.collect_inner(generation, true)
382 }
383
384 fn collect_inner(&self, generation: usize, force: bool) -> CollectResult {
385 if !force && !self.is_enabled() {

Callers 3

collectFunction · 0.80
finalize_modulesMethod · 0.80
finalizeMethod · 0.80

Calls 1

collect_innerMethod · 0.80

Tested by

no test coverage detected