Skip to content

Commit

Permalink
feat(wasmtime-backend): host stack size for WASM modules runtime has …
Browse files Browse the repository at this point in the history
…been increased to manage with AIR `fold` over 1023 elements in AquaVM (#390)
  • Loading branch information
raftedproc committed Nov 1, 2023
1 parent 3145078 commit 0f5d08a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/wasmtime-backend/src/lib.rs
Expand Up @@ -38,6 +38,8 @@ use marine_wasm_backend_traits::prelude::*;

use wasmtime_wasi::WasiCtx;

const MB: usize = 1024 * 1024;

#[derive(Clone, Default)]
pub struct WasmtimeWasmBackend {
engine: wasmtime::Engine,
Expand All @@ -61,7 +63,8 @@ impl WasmBackend for WasmtimeWasmBackend {
let mut config = wasmtime::Config::new();
config
.debug_info(false)
.wasm_backtrace_details(wasmtime::WasmBacktraceDetails::Enable);
.wasm_backtrace_details(wasmtime::WasmBacktraceDetails::Enable)
.max_wasm_stack(2 * MB);
let engine =
wasmtime::Engine::new(&config).map_err(WasmBackendError::InitializationError)?;

Expand Down

0 comments on commit 0f5d08a

Please sign in to comment.