From 497a5e89d2738ae15fe995f2b526bdb67f56212d Mon Sep 17 00:00:00 2001 From: udo Date: Fri, 17 Jul 2026 23:48:31 +0000 Subject: [PATCH] Reuse Wasmtime instance allocation slots --- src/wasm/worker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wasm/worker.cpp b/src/wasm/worker.cpp index 535cd0c..c857448 100644 --- a/src/wasm/worker.cpp +++ b/src/wasm/worker.cpp @@ -1200,6 +1200,8 @@ private: static wasmtime::Engine make_engine() { wasmtime::Config config; + wasmtime::PoolAllocationConfig pool; + config.pooling_allocation_strategy(pool); config.epoch_interruption(true); // CRITICAL: the host (linux_fastcgi.cpp) installs its own SIGSEGV/SIGILL/ // SIGBUS handlers per request (install_request_fault_handlers) with plain