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

Method get_threshold

crates/vm/src/gc_state.rs:226–232  ·  view source on GitHub ↗

Get thresholds for all generations

(&self)

Source from the content-addressed store, hash-verified

224
225 /// Get thresholds for all generations
226 pub fn get_threshold(&self) -> (u32, u32, u32) {
227 (
228 self.generations[0].threshold(),
229 self.generations[1].threshold(),
230 self.generations[2].threshold(),
231 )
232 }
233
234 /// Set thresholds
235 pub fn set_threshold(&self, t0: u32, t1: Option<u32>, t2: Option<u32>) {

Callers 10

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
gc_thresholdFunction · 0.80
get_thresholdFunction · 0.80

Calls 1

thresholdMethod · 0.80

Tested by 8

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