Stream: git-wasmtime

Topic: wasmtime / PR #3503 Add a configuration option to force "...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 15:17):

alexcrichton opened PR #3503 from static-max to main:

In poking around at some things earlier today I realized that one
configuration option for memories we haven't exposed from embeddings
like the CLI is to forcibly limit the size of memory growth and force
using a static memory style. This means that the CLI, for example, can't
limit memory growth by default and memories are only limited in size by
what the OS can give and the wasm's own memory type. This configuration
option means that the CLI can artificially limit the size of wasm linear
memories.

Additionally another motivation for this is for testing out various
codegen ramifications of static/dynamic memories. This is the only way
to force a static memory, by default, for wasm64 memories with no
maximum size listed for example.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 15:44):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 15:44):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 15:44):

cfallin created PR review comment:

maybe min(bound_bytes, maximum.unwrap_or(usize::MAX)) to avoid the match and Option awkwardness?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 16:56):

alexcrichton updated PR #3503 from static-max to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 16:56):

alexcrichton created PR review comment:

Ah yes indeed!

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 16:56):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 03 2021 at 21:50):

alexcrichton merged PR #3503.


Last updated: Nov 22 2024 at 17:03 UTC