Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Fix `decommit_pages` for custom no-std platforms (#14774)

Nick Fitzgeralddb82603b5165
diff --git a/crates/wasmtime/src/runtime/vm/sys/custom/vm.rs b/crates/wasmtime/src/runtime/vm/sys/custom/vm.rs
index 687af2477c..1d6245634b 100644
--- a/crates/wasmtime/src/runtime/vm/sys/custom/vm.rs
+++ b/crates/wasmtime/src/runtime/vm/sys/custom/vm.rs
@@ -42,7 +42,7 @@ pub struct iovec {
}
#[cfg(feature = "pooling-allocator")]
-pub unsafe fn decommit_pages(addr: *mut u8, len: usize) -> Result<()> {
+pub unsafe fn decommit_pages(iov: &[iovec]) -> Result<()> {
for iov in iov {
if iov.iov_len == 0 {
continue;