Stream: git-wasmtime

Topic: wasmtime / PR #10903 Update the definition of `wasmtime::...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2025 at 23:09):

alexcrichton requested pchickey for a review on PR #10903.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2025 at 23:09):

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

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2025 at 23:09):

alexcrichton opened PR #10903 from alexcrichton:refactor-tables to bytecodealliance:main:

This commit is similar to a prior commit modifying memories which refactors the internals of wasmtime::Table to not longer use a Stored index. Instead a StoreInstanceId and a DefinedTableIndex is used instead. This enables construction of external-facing types to be trivial and zero-cost.

This additionally notably fixes an issue where triggering a GC in a store would unconditionally create a Table, pushing onto an internal vector in the store. This then would never be deallocated because the internal table lived as long as the Store. In effect this meant that triggering a GC would end up leaking memory by pushing more items onto internal Store table. This is fixed through this commit because creating a wasmtime::Table is now "free" and no longer requires any allocations.

<!--
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 (Jun 02 2025 at 23:26):

fitzgen submitted PR review:

Nice

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2025 at 23:53):

alexcrichton updated PR #10903.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 02 2025 at 23:53):

alexcrichton has enabled auto merge for PR #10903.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2025 at 04:45):

alexcrichton updated PR #10903.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2025 at 04:46):

alexcrichton has enabled auto merge for PR #10903.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 03 2025 at 05:26):

alexcrichton merged PR #10903.


Last updated: Dec 06 2025 at 07:03 UTC