mirror of
https://github.com/fluencelabs/marine.git
synced 2025-03-14 13:30:50 +00:00
chore(core-runtime): host stack size for WASM modules runtime has been increased to manage with AIR fold
over 1023 elements in AquaVM
This commit is contained in:
parent
3145078fbf
commit
e56501a6be
@ -38,6 +38,8 @@ use marine_wasm_backend_traits::prelude::*;
|
||||
|
||||
use wasmtime_wasi::WasiCtx;
|
||||
|
||||
const TWO_MB: usize = 2 * 1024 * 1024;
|
||||
|
||||
#[derive(Clone, Default)]
|
||||
pub struct WasmtimeWasmBackend {
|
||||
engine: wasmtime::Engine,
|
||||
@ -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(TWO_MB);
|
||||
let engine =
|
||||
wasmtime::Engine::new(&config).map_err(WasmBackendError::InitializationError)?;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user