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

Method drop

crates/wasmtime/src/runtime/debug.rs:1199–1210  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1197
1198impl<'a> Drop for BreakpointEdit<'a> {
1199 fn drop(&mut self) {
1200 for &store_code_base in &self.dirty_modules {
1201 let store_code = self.registry.store_code_mut(store_code_base).unwrap();
1202 if let Err(e) = store_code
1203 .code_memory_mut()
1204 .expect("Must have unique ownership of StoreCode in guest-debug mode")
1205 .publish()
1206 {
1207 abort_on_republish_error(e);
1208 }
1209 }
1210 }
1211}
1212
1213/// Abort when we cannot re-publish executable code.

Callers

nothing calls this directly

Calls 6

abort_on_republish_errorFunction · 0.85
store_code_mutMethod · 0.80
publishMethod · 0.80
code_memory_mutMethod · 0.80
unwrapMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected