Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Update wasmtime config to match new version
Browse files Browse the repository at this point in the history
  • Loading branch information
slumber committed Oct 12, 2021
1 parent 3bc7afa commit 4253c13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion node/core/pvf/src/executor_intf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ const CONFIG: Config = Config {
// wasm pages.
//
// Thus let's assume that 32 pages or 2 MiB are used for these needs.
max_memory_pages: Some(2048 + 32),
//
// Note that the memory limit is specified in bytes, so we multiply this value
// by wasm page size -- 64 KiB.
max_memory_size: Some((2048 + 32) * 65536),
heap_pages: 2048,

allow_missing_func_imports: true,
Expand All @@ -65,6 +68,7 @@ const CONFIG: Config = Config {
native_stack_max: 256 * 1024 * 1024,
}),
canonicalize_nans: true,
parallel_compilation: true,
},
};

Expand Down

0 comments on commit 4253c13

Please sign in to comment.