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

Method set_threshold

crates/vm/src/gc_state.rs:92–94  ·  view source on GitHub ↗
(&self, value: u32)

Source from the content-addressed store, hash-verified

90 }
91
92 pub fn set_threshold(&self, value: u32) {
93 self.threshold.store(value, Ordering::SeqCst);
94 }
95
96 pub fn stats(&self) -> GcStats {
97 let guard = self.stats.lock();

Callers 12

test_delMethod · 0.80
test_del_newclassMethod · 0.80
test_len_raceMethod · 0.80
check_len_raceMethod · 0.80
test_free_from_gcMethod · 0.80
test_thread_safetyMethod · 0.80
setup_testsFunction · 0.80
gc_thresholdFunction · 0.80
test_gc_thresholdFunction · 0.80
set_thresholdFunction · 0.80

Calls 1

storeMethod · 0.45

Tested by 9

test_delMethod · 0.64
test_del_newclassMethod · 0.64
test_len_raceMethod · 0.64
check_len_raceMethod · 0.64
test_free_from_gcMethod · 0.64
test_thread_safetyMethod · 0.64
test_gc_thresholdFunction · 0.64