Upgrade wasmtime to 0.40.0 (#12096)

* Upgrade wasmtime to 0.40.0

* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts

* Update in the other Cargo.toml

* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts

Co-authored-by: command-bot <>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
Bastian Köcher
2022-09-08 09:57:23 +01:00
committed by GitHub
parent 972ac424f0
commit bec123a50f
5 changed files with 739 additions and 771 deletions
@@ -320,9 +320,7 @@ fn common_config(semantics: &Semantics) -> std::result::Result<wasmtime::Config,
wasmtime::ProfilingStrategy::None
},
};
config
.profiler(profiler)
.map_err(|e| WasmError::Instantiation(format!("fail to set profiler: {:#}", e)))?;
config.profiler(profiler);
let native_stack_max = match semantics.deterministic_stack_limit {
Some(DeterministicStackLimit { native_stack_max, .. }) => native_stack_max,
@@ -334,9 +332,7 @@ fn common_config(semantics: &Semantics) -> std::result::Result<wasmtime::Config,
None => 1024 * 1024,
};
config
.max_wasm_stack(native_stack_max as usize)
.map_err(|e| WasmError::Other(format!("cannot set max wasm stack: {:#}", e)))?;
config.max_wasm_stack(native_stack_max as usize);
config.parallel_compilation(semantics.parallel_compilation);