diff --git a/crates/containerd-shim-wasmtime/src/instance.rs b/crates/containerd-shim-wasmtime/src/instance.rs index 15fca98c6..fc09c96b4 100644 --- a/crates/containerd-shim-wasmtime/src/instance.rs +++ b/crates/containerd-shim-wasmtime/src/instance.rs @@ -451,6 +451,7 @@ fn use_pooling_allocator_by_default() -> Result { const BITS_TO_TEST: u32 = 42; let mut config = Config::new(); config.wasm_memory64(true); + config.static_memory_maximum_size(1 << BITS_TO_TEST); let engine = wasmtime::Engine::new(&config)?; let mut store = Store::new(&engine, ()); let ty = wasmtime::MemoryType::new64(0, Some(1 << (BITS_TO_TEST - 16)));