From 9cd2546c3bc31af946e9beaec1a084b52e83a291 Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Mon, 9 Oct 2023 11:43:50 -0700 Subject: [PATCH] Match the number of memories to the number of core instances --- lib/src/execute.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/execute.rs b/lib/src/execute.rs index ec1793a3..207ba7d3 100644 --- a/lib/src/execute.rs +++ b/lib/src/execute.rs @@ -520,7 +520,7 @@ fn configure_wasmtime(profiling_strategy: ProfilingStrategy) -> wasmtime::Config pooling_allocation_config.max_core_instance_size(MB); // Core wasm programs have 1 memory - pooling_allocation_config.total_memories(1); + pooling_allocation_config.total_memories(100); pooling_allocation_config.max_memories_per_module(1); // allow for up to 128MiB of linear memory. Wasm pages are 64k