Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ disable
Method
disable
crates/vm/src/gc_state.rs:211–213 ·
view source on GitHub ↗
Disable GC
(&self)
Source
from the content-addressed store, hash-verified
209
210
/// Disable GC
211
pub fn disable(&self) {
212
self.enabled.store(false, Ordering::SeqCst);
213
}
214
215
/// Get debug flags
216
pub fn get_debug(&self) -> GcDebugFlags {
Callers
2
test_gc_enable_disable
Function · 0.45
disable
Function · 0.45
Calls
1
store
Method · 0.45
Tested by
1
test_gc_enable_disable
Function · 0.36