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

Method drop

cranelift/filetests/src/function_runner.rs:396–400  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

394
395impl Drop for CompiledTestFile {
396 fn drop(&mut self) {
397 // Freeing the module's memory erases the compiled functions.
398 // This should be safe since their pointers never leave this struct.
399 unsafe { self.module.take().unwrap().free_memory() }
400 }
401}
402
403std::thread_local! {

Callers

nothing calls this directly

Calls 3

free_memoryMethod · 0.45
unwrapMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected