From d009ba01269113ad0c67678a1412a1758da1a6d5 Mon Sep 17 00:00:00 2001 From: Trevor Elliott Date: Mon, 9 Oct 2023 12:07:01 -0700 Subject: [PATCH] Match the number of memories to the number of core instances (#322) --- 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 2a3cc249..785aa9eb 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