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

Method unpublish_executable

tests/all/custom_code_memory.rs:25–34  ·  view source on GitHub ↗
(&self, ptr: *const u8, len: usize)

Source from the content-addressed store, hash-verified

23 }
24
25 fn unpublish_executable(&self, ptr: *const u8, len: usize) -> wasmtime::Result<()> {
26 unsafe {
27 mprotect(
28 ptr as *mut _,
29 len,
30 MprotectFlags::READ | MprotectFlags::WRITE,
31 )?;
32 }
33 Ok(())
34 }
35 }
36
37 #[test]

Callers 2

dropMethod · 0.80
custom_unpublishMethod · 0.80

Calls 1

OkFunction · 0.85

Tested by

no test coverage detected