Stream: git-wasmtime

Topic: wasmtime / PR #10349 Wasm GC: Unify supported alignment a...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 06 2025 at 19:54):

fitzgen opened PR #10349 from fitzgen:free-list-and-v128 to bytecodealliance:main:

Additionally, support alignment 16 for v128s inside GC objects.

We previously allowed the alignment and minimum block size to be different values, and did not round allocation sizes up to the minimum block size. This could lead to bugs like the following sequence of events:

If we ensure that the minimum allocation size is a multiple of our supported alignment and we clamp requested allocations' sizes to at least the minimum block size, then we could avoid this.

It is simpler, however, to unify our supported alignment and our minimum block size into the same value. This PR does that. No more need for multiple concepts which interact in subtle ways.

<!--
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 (Mar 06 2025 at 19:54):

fitzgen requested wasmtime-core-reviewers for a review on PR #10349.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 06 2025 at 19:54):

fitzgen requested dicej for a review on PR #10349.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 06 2025 at 21:44):

github-actions[bot] commented on PR #10349:

Subscribe to Label Action

cc @fitzgen

<details>
This issue or pull request has been labeled: "wasmtime:api", "wasmtime:ref-types"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Mar 06 2025 at 21:46):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 06 2025 at 22:07):

alexcrichton merged PR #10349.


Last updated: Apr 17 2025 at 20:03 UTC