Stream: git-wasmtime

Topic: wasmtime / PR #8018 Refactor runtime table management for...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2024 at 19:19):

alexcrichton opened PR #8018 from alexcrichton:more-table-type-safety to bytecodealliance:main:

This commit is an attempt to make the mistake fixed in #8016 harder to happen again. This removes the set_raw helper entirely from tables and instead forces all callers to view the table as either a table of funcrefs or a table of externefs. By forcing that choice outwards instead of handling it inwards it enables dealing with a typed table in more contexts which should help naturally do the right thing.

<!--
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 (Feb 28 2024 at 19:19):

alexcrichton requested pchickey for a review on PR #8018.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2024 at 19:19):

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

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2024 at 19:19):

alexcrichton requested fitzgen for a review on PR #8018.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2024 at 19:20):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2024 at 19:20):

alexcrichton created PR review comment:

Relative to https://github.com/bytecodealliance/wasmtime/pull/8016 this was the other issue I found, this forgot to check whether the table was an externref table or funcref table and triggered a panic by assuming a global was a funcref.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2024 at 20:02):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 28 2024 at 20:24):

fitzgen merged PR #8018.


Last updated: Oct 23 2024 at 20:03 UTC