Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_del
Method · 0.80
test_del_newclass
Method · 0.80
test_len_race
Method · 0.80
test_handle_frame_object_in_creation
Method · 0.80
check_gc_during_creation
Method · 0.80
check_len_race
Method · 0.80
test_free_from_gc
Method · 0.80
test_thread_safety
Method · 0.80
setup_tests
Function · 0.80
gc_threshold
Function · 0.80
test_gc_threshold
Function · 0.80
set_threshold
Function · 0.80
Calls
1
store
Method · 0.45
Tested by
9
test_del
Method · 0.64
test_del_newclass
Method · 0.64
test_len_race
Method · 0.64
test_handle_frame_object_in_creation
Method · 0.64
check_gc_during_creation
Method · 0.64
check_len_race
Method · 0.64
test_free_from_gc
Method · 0.64
test_thread_safety
Method · 0.64
test_gc_threshold
Function · 0.64