(&self, ptr: *const u8, len: usize)
| 12 | } |
| 13 | |
| 14 | fn publish_executable(&self, ptr: *const u8, len: usize) -> wasmtime::Result<()> { |
| 15 | unsafe { |
| 16 | mprotect( |
| 17 | ptr as *mut _, |
| 18 | len, |
| 19 | MprotectFlags::READ | MprotectFlags::EXEC, |
| 20 | )?; |
| 21 | } |
| 22 | Ok(()) |
| 23 | } |
| 24 | |
| 25 | fn unpublish_executable(&self, ptr: *const u8, len: usize) -> wasmtime::Result<()> { |
| 26 | unsafe { |