MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / drop

Method drop

cranelift/jit/src/memory/system.rs:147–152  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

145
146impl Drop for Memory {
147 fn drop(&mut self) {
148 // leak memory to guarantee validity of function pointers
149 mem::replace(&mut self.allocations, Vec::new())
150 .into_iter()
151 .for_each(mem::forget);
152 }
153}
154
155/// A memory provider that allocates memory on-demand using the system

Callers

nothing calls this directly

Calls 3

replaceFunction · 0.50
newFunction · 0.50
into_iterMethod · 0.45

Tested by

no test coverage detected