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

Method is_enabled

crates/vm/src/gc_state.rs:201–203  ·  view source on GitHub ↗

Check if GC is enabled

(&self)

Source from the content-addressed store, hash-verified

199
200 /// Check if GC is enabled
201 pub fn is_enabled(&self) -> bool {
202 self.enabled.load(Ordering::SeqCst)
203 }
204
205 /// Enable GC
206 pub fn enable(&self) {

Callers 8

test_is_enabledMethod · 0.80
test_loop_quickenMethod · 0.80
get_build_infoFunction · 0.80
disable_faulthandlerFunction · 0.80
__init__.pyFile · 0.80
maybe_collectMethod · 0.80
collect_innerMethod · 0.80
isenabledFunction · 0.80

Calls 1

loadMethod · 0.45

Tested by 2

test_is_enabledMethod · 0.64
test_loop_quickenMethod · 0.64