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

Method free_memory

cranelift/jit/src/backend.rs:192–194  ·  view source on GitHub ↗

Free memory allocated for code and data segments of compiled functions. # Safety Because this function invalidates any pointers retrieved from the corresponding module, it should only be used when none of the functions from that module are currently executing and none of the `fn` pointers are called afterwards.

(mut self)

Source from the content-addressed store, hash-verified

190 /// from that module are currently executing and none of the `fn` pointers
191 /// are called afterwards.
192 pub unsafe fn free_memory(mut self) {
193 self.memory.free_memory();
194 }
195
196 fn lookup_symbol(&self, name: &str) -> Option<*const u8> {
197 match self.symbols.borrow_mut().entry(name.to_owned()) {

Callers 1

dropMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected