Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into bkchr-companion-gro…
…w-memory
  • Loading branch information
bkchr committed Feb 17, 2023
commit 384d30a041c36fb3c6c46ffd42da54fbfbff4fce
8 changes: 3 additions & 5 deletions node/core/pvf/src/executor_intf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@ fn params_to_wasmtime_semantics(par: ExecutorParams) -> Result<Semantics, String

for p in par.iter() {
match p {
ExecutorParam::MaxMemorySize(mms) =>
sem.heap_alloc_strategy = HeapAllocStrategy::Dynamic {
// Round up the number of wasm pages.
maximum_pages: Some((mms + 64 * 1024 * 1024 - 1) / (1024 * 1024 * 64)),
},
ExecutorParam::MaxMemoryPages(max_pages) =>
sem.heap_alloc_strategy =
HeapAllocStrategy::Dynamic { maximum_pages: Some(max_pages) },
ExecutorParam::StackLogicalMax(slm) => stack_limit.logical_max = *slm,
ExecutorParam::StackNativeMax(snm) => stack_limit.native_stack_max = *snm,
ExecutorParam::PrecheckingMaxMemory(_) => (), // TODO: Not implemented yet
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.