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

Method drop

tests/all/memory_creator.rs:51–54  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

49
50 impl Drop for CustomMemory {
51 fn drop(&mut self) {
52 *self.glob_bytes_counter.lock().unwrap() -= self.used_wasm_bytes;
53 unsafe { munmap(self.mem as *mut _, self.size).expect("munmap failed") };
54 }
55 }
56
57 unsafe impl LinearMemory for CustomMemory {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
lockMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected