From e06ab0de8e8ae2d1c2ce99c39a25dde7cee23f4c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 2 Nov 2024 13:49:32 -0700 Subject: [PATCH] Fix build of cow.rs --- crates/wasmtime/src/runtime/vm/cow.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/wasmtime/src/runtime/vm/cow.rs b/crates/wasmtime/src/runtime/vm/cow.rs index 7cf3c167219..0ac6e5d6bea 100644 --- a/crates/wasmtime/src/runtime/vm/cow.rs +++ b/crates/wasmtime/src/runtime/vm/cow.rs @@ -798,7 +798,7 @@ mod test { fn instantiate_no_image() { let ty = dummy_memory(); let tunables = Tunables { - static_memory_reservation: 4 << 30, + memory_reservation: 4 << 30, ..Tunables::default_miri() }; // 4 MiB mmap'd area, not accessible @@ -838,7 +838,7 @@ mod test { let page_size = host_page_size(); let ty = dummy_memory(); let tunables = Tunables { - static_memory_reservation: 4 << 30, + memory_reservation: 4 << 30, ..Tunables::default_miri() }; // 4 MiB mmap'd area, not accessible @@ -911,7 +911,7 @@ mod test { let page_size = host_page_size(); let ty = dummy_memory(); let tunables = Tunables { - static_memory_reservation: 100 << 16, + memory_reservation: 100 << 16, ..Tunables::default_miri() }; let mut mmap = Mmap::accessible_reserved(0, 4 << 20).unwrap(); @@ -964,8 +964,8 @@ mod test { let page_size = host_page_size(); let ty = dummy_memory(); let tunables = Tunables { - static_memory_reservation: 0, - dynamic_memory_growth_reserve: 200, + memory_reservation: 0, + memory_reservation_for_growth: 200, ..Tunables::default_miri() };