Stream: git-wasmtime

Topic: wasmtime / PR #8608 Change `MemoryStyle::Static` to store...


view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:25):

alexcrichton opened PR #8608 from alexcrichton:start-using-bytes-not-pages to bytecodealliance:main:

This commit is inspired by me looking at some configuration in the pooling allocator and noticing that configuration of wasm pages vs bytes of linear memory is somewhat inconsistent in Config. In the end I'd like to remove or update the memory_pages configuration in the pooling allocator to being bytes of linear memory instead to be more consistent with Config (and additionally anticipate the custom-page-sizes wasm proposal where terms-of-pages will become ambiguous). The first step in this change is to update one of the lowest layered usages of pages, the MemoryStyle::Static configuration.

Note that this is not a trivial conversion because the purpose of carrying around pages instead of bytes is that bytes may overflow where overflow-with-pages typically happens during validation. This means that extra care is taken to handle errors related to overflow to ensure that everything is still reported at the same time.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:25):

alexcrichton requested cfallin for a review on PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:25):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:25):

alexcrichton requested fitzgen for a review on PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:25):

alexcrichton requested wasmtime-core-reviewers for a review on PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:45):

fitzgen submitted PR review:

Nice! Thanks for doing this, it will def make implementing the custom-page-sizes proposal easier once I get around to that

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:45):

fitzgen submitted PR review:

Nice! Thanks for doing this, it will def make implementing the custom-page-sizes proposal easier once I get around to that

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:45):

fitzgen created PR review comment:

                             satisfy static bound of {byte_reservation:#x} bytes"

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:45):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 19:45):

fitzgen created PR review comment:

(your lack of rust-analyzer didn't save you this time)

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 20:07):

alexcrichton updated PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 20:07):

alexcrichton has enabled auto merge for PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 20:37):

alexcrichton updated PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 20:52):

alexcrichton updated PR #8608.

view this post on Zulip Wasmtime GitHub notifications bot (May 13 2024 at 21:32):

alexcrichton merged PR #8608.


Last updated: Oct 23 2024 at 20:03 UTC