Skip to content

Commit

Permalink
Merge e56501a into 3145078
Browse files Browse the repository at this point in the history
  • Loading branch information
raftedproc committed Nov 1, 2023
2 parents 3145078 + e56501a commit 6e29abd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/wasmtime-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
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(TWO_MB);
let engine =
wasmtime::Engine::new(&config).map_err(WasmBackendError::InitializationError)?;

Expand Down

0 comments on commit 6e29abd

Please sign in to comment.