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

Method finish_current

cranelift/jit/src/memory/system.rs:66–70  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

64 }
65
66 fn finish_current(&mut self) {
67 self.allocations
68 .push(mem::replace(&mut self.current, PtrLen::new()));
69 self.position = 0;
70 }
71
72 pub(crate) fn allocate(&mut self, size: usize, align: u64) -> io::Result<*mut u8> {
73 let align = usize::try_from(align).expect("alignment too big");

Callers 3

allocateMethod · 0.80
set_readonlyMethod · 0.80

Calls 3

replaceFunction · 0.50
newFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected