From 119daef579c1ed44c0b8d20c19e9614eda4cceb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hillerstr=C3=B6m?= Date: Thu, 13 Jun 2024 10:50:27 +0200 Subject: [PATCH] Use host_page_size to determine the page size in the stack pooling allocator. --- .../src/runtime/vm/instance/allocator/wasmfx_allocator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/wasmtime/src/runtime/vm/instance/allocator/wasmfx_allocator.rs b/crates/wasmtime/src/runtime/vm/instance/allocator/wasmfx_allocator.rs index b149f8053add..86954f8ccdde 100644 --- a/crates/wasmtime/src/runtime/vm/instance/allocator/wasmfx_allocator.rs +++ b/crates/wasmtime/src/runtime/vm/instance/allocator/wasmfx_allocator.rs @@ -84,7 +84,7 @@ pub mod wasmfx_pooling { let total_stacks = 1024 /* total amount of stacks */; - let page_size = crate::vm::page_size(); + let page_size = crate::vm::host_page_size(); // Add a page to the stack size for the guard page when using fiber stacks let stack_size = if config.stack_size == 0 {