diff options
| author | JF Bastien <github@jfbastien.com> | 2016-02-12 17:32:57 +0100 |
|---|---|---|
| committer | JF Bastien <github@jfbastien.com> | 2016-02-12 17:32:57 +0100 |
| commit | 413c8bc3f6ef7dccd849849aeee5fc015c63cd06 (patch) | |
| tree | ccb979dbe62dde18f79095e7209b0773c4409088 | |
| parent | 8f4be3cacc122014d3020986e9591251b1a54c89 (diff) | |
| parent | 4b2bf18cf71254639a0347e1b651ae5d9107056d (diff) | |
| download | nanowasm-design-413c8bc3f6ef7dccd849849aeee5fc015c63cd06.tar.gz | |
Merge pull request #542 from JSStats/mem-pages
Initial and maximum memory size must be a multple of the page size.
| -rw-r--r-- | AstSemantics.md | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/AstSemantics.md b/AstSemantics.md index 58d3a89..95a1b69 100644 --- a/AstSemantics.md +++ b/AstSemantics.md @@ -83,12 +83,17 @@ operators. The main storage of a WebAssembly instance, called the *linear memory*, is a contiguous, byte-addressable range of memory spanning from offset `0` and extending for `memory_size` bytes which can be dynamically grown by -[`grow_memory`](AstSemantics.md#resizing). The linear memory can be considered to -be an untyped array of bytes, and it is unspecified how embedders map this array -into their process' own [virtual memory][]. The linear memory is sandboxed; it -does not alias the execution engine's internal data structures, the execution -stack, local variables, or other process memory. The initial state of linear -memory is specified by the [module](Modules.md#linear-memory-section). +[`grow_memory`](AstSemantics.md#resizing). The linear memory can be considered +to be an untyped array of bytes, and it is unspecified how embedders map this +array into their process' own [virtual memory][]. The linear memory is +sandboxed; it does not alias the execution engine's internal data structures, +the execution stack, local variables, or other process memory. + +The initial state of linear memory is specified by the +[module](Modules.md#linear-memory-section). The initial and maximum memory size +are required to be a multiple of the WebAssembly page size, which is 64KiB on +all engines (though large page support may be added in the +[future](FutureFeatures.md#large-page-support)). [virtual memory]: https://en.wikipedia.org/wiki/Virtual_memory |
