Update wasmtime config to match new version in substrate (#4063)

* Update wasmtime config to match new version

* update Substrate

Co-authored-by: parity-processbot <>
This commit is contained in:
Chris Sosnin
2021-10-12 18:56:36 +03:00
committed by GitHub
parent 622ffbd808
commit 1af17eed39
2 changed files with 220 additions and 278 deletions
+215 -277
View File
File diff suppressed because it is too large Load Diff
+5 -1
View File
@@ -41,7 +41,10 @@ const CONFIG: Config = Config {
// wasm pages. // wasm pages.
// //
// Thus let's assume that 32 pages or 2 MiB are used for these needs. // 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, heap_pages: 2048,
allow_missing_func_imports: true, allow_missing_func_imports: true,
@@ -65,6 +68,7 @@ const CONFIG: Config = Config {
native_stack_max: 256 * 1024 * 1024, native_stack_max: 256 * 1024 * 1024,
}), }),
canonicalize_nans: true, canonicalize_nans: true,
parallel_compilation: true,
}, },
}; };