Skip to content

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

Remove incorrect noop in unix stack pool management (#13069)

Alex Crichton42266d4b5fc7
diff --git a/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs b/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs
index 9652c1bc30..13e788e179 100644
--- a/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs
+++ b/crates/wasmtime/src/runtime/vm/instance/allocator/pooling/unix_stack_pool.rs
@@ -2,7 +2,6 @@
use super::index_allocator::{SimpleIndexAllocator, SlotId};
use crate::prelude::*;
-use crate::runtime::vm::sys::vm::commit_pages;
use crate::runtime::vm::{
HostAlignedByteCount, Mmap, PoolingInstanceAllocatorConfig, mmap::AlignedLength,
};
@@ -121,8 +120,6 @@ impl StackPool {
.add(self.stack_size.unchecked_mul(index).byte_count())
.cast_mut();
- commit_pages(bottom_of_stack, size_without_guard.byte_count())?;
-
let stack = wasmtime_fiber::FiberStack::from_raw_parts(
bottom_of_stack,
self.page_size.byte_count(),