diff --git a/crates/cli-flags/src/lib.rs b/crates/cli-flags/src/lib.rs index 6b6ffb69258..586e32420d3 100644 --- a/crates/cli-flags/src/lib.rs +++ b/crates/cli-flags/src/lib.rs @@ -42,7 +42,8 @@ wasmtime_option_group! { /// Optimization level of generated code (0-2, s; default: 2) pub opt_level: Option, - /// Do not allow memories to grow beyond `-O memory-reservation` + /// Do not allow Wasm linear memories to move in the host process's + /// address space. pub memory_may_move: Option, /// Initial virtual memory allocation size for memories. diff --git a/crates/wasmtime/src/config.rs b/crates/wasmtime/src/config.rs index a8b36c7374b..4c0de5b0e81 100644 --- a/crates/wasmtime/src/config.rs +++ b/crates/wasmtime/src/config.rs @@ -1334,7 +1334,7 @@ impl Config { /// * Memory `$a` initially allocates 4 WebAssembly pages (256KiB) and can /// grow up to 4GiB, the limit of the 32-bit index space. /// * Memory `$b` initially allocates 4096 WebAssembly pages, but in this - /// case the page size is 1, so it's 4096 bytes. Memory can also grow no + /// case its page size is 1, so it's 4096 bytes. Memory can also grow no /// further meaning that it will always be 4096 bytes. /// * Memory `$c` is a 64-bit linear memory which starts with 640KiB of /// memory and can theoretically grow up to 2^64 bytes, although most @@ -1502,12 +1502,12 @@ impl Config { /// /// * Modules can be compiled with static knowledge the base pointer of /// linear memory never changes to enable optimizations such as - /// loop-invariant-code-motion (hosting the base pointer out of a loop). + /// loop invariant code motion (hoisting the base pointer out of a loop). /// /// * Memories cannot grow in excess of their original allocation. This /// means that [`Config::memory_reservation`] and /// [`Config::memory_reservation_for_growth`] may need tuning to ensure - /// the memory work at runtime. + /// the memory configuration works at runtime. /// /// The default value for this option is `true`. pub fn memory_may_move(&mut self, enable: bool) -> &mut Self {