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

Method read_adaptive_counter

crates/compiler-core/src/bytecode.rs:772–774  ·  view source on GitHub ↗

Read adaptive counter bits for instruction at `index`. Uses Relaxed atomic load.

(&self, index: usize)

Source from the content-addressed store, hash-verified

770 /// Read adaptive counter bits for instruction at `index`.
771 /// Uses Relaxed atomic load.
772 pub fn read_adaptive_counter(&self, index: usize) -> u16 {
773 self.adaptive_counters[index].load(Ordering::Relaxed)
774 }
775
776 /// Write adaptive counter bits for instruction at `index`.
777 /// Uses Relaxed atomic store.

Callers 11

specialize_load_attrMethod · 0.80
adaptiveMethod · 0.80
commit_specializationMethod · 0.80
specialize_callMethod · 0.80
specialize_call_kwMethod · 0.80
specialize_sendMethod · 0.80
specialize_to_boolMethod · 0.80
specialize_store_attrMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected