MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / invalidate_inst

Method invalidate_inst

compiler/src/modules/vm/cache.rs:166–168  ·  view source on GitHub ↗
(&mut self, ip: usize)

Source from the content-addressed store, hash-verified

164 }
165
166 pub fn invalidate_inst(&mut self, ip: usize) {
167 if let Some(s) = self.slots.get_mut(ip) { s.inst = None; }
168 }
169
170 /* GC root iterator for `InstanceCache` entries: yields the cached method Val and class Val so the collector keeps both alive while the cache holds them. */
171 pub fn inst_roots(&self) -> impl Iterator<Item = Val> + '_ {

Callers 2

dispatchMethod · 0.80
exec_arith_or_compareMethod · 0.80

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected