Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ enable
Method
enable
crates/vm/src/gc_state.rs:206–208 ·
view source on GitHub ↗
Enable GC
(&self)
Source
from the content-addressed store, hash-verified
204
205
/// Enable GC
206
pub fn enable(&self) {
207
self.enabled.store(true, Ordering::SeqCst);
208
}
209
210
/// Disable GC
211
pub fn disable(&self) {
Callers
2
test_gc_enable_disable
Function · 0.45
enable
Function · 0.45
Calls
1
store
Method · 0.45
Tested by
1
test_gc_enable_disable
Function · 0.36