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

Method finalize

cranelift/jit/src/memory/system.rs:185–188  ·  view source on GitHub ↗
(&mut self, branch_protection: BranchProtection)

Source from the content-addressed store, hash-verified

183 }
184
185 fn finalize(&mut self, branch_protection: BranchProtection) -> ModuleResult<()> {
186 self.readonly.set_readonly()?;
187 self.code.set_readable_and_executable(branch_protection)
188 }
189
190 fn allocate(&mut self, size: usize, align: u64, kind: JITMemoryKind) -> io::Result<*mut u8> {
191 match kind {

Callers

nothing calls this directly

Calls 2

set_readonlyMethod · 0.45

Tested by

no test coverage detected