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

Method drop

crates/wasmtime/src/runtime/vm/instance.rs:1854–1860  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1852
1853impl<T: InstanceLayout> Drop for OwnedInstance<T> {
1854 fn drop(&mut self) {
1855 unsafe {
1856 let layout = self.get().layout();
1857 ptr::drop_in_place(self.instance.as_ptr());
1858 alloc::alloc::dealloc(self.instance.as_ptr().cast(), layout);
1859 }
1860 }
1861}
1862
1863#[derive(Debug)]

Callers

nothing calls this directly

Calls 5

deallocFunction · 0.85
layoutMethod · 0.45
getMethod · 0.45
as_ptrMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected