Stream: git-wasmtime

Topic: wasmtime / PR #11341 Reset fewer bytes when resetting tables


view this post on Zulip Wasmtime GitHub notifications bot (Jul 29 2025 at 20:28):

alexcrichton opened PR #11341 from alexcrichton:reset-fewer-table-bytes to bytecodealliance:main:

This commit changes the resetting of tables back to all-null in TablePool::reset_table_pages_to_zero. Previously the full capacity of the table was reset back to zero, depending on the configuration of the pooling allocator. Now the table's dynamic size is taken into account as the size of the allocation to reset. This should help resetting fewer bytes and making keep_resident options more applicable for example because tiny tables, as can show up in components, don't need a large memset followed by a decommit and can instead just use a tiny memset.

<!--
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 (Jul 29 2025 at 20:28):

alexcrichton requested dicej for a review on PR #11341.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 29 2025 at 20:28):

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

view this post on Zulip Wasmtime GitHub notifications bot (Jul 29 2025 at 20:35):

fitzgen submitted PR review:

:+1:

view this post on Zulip Wasmtime GitHub notifications bot (Jul 29 2025 at 20:36):

fitzgen has enabled auto merge for PR #11341.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 29 2025 at 20:36):

dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 29 2025 at 21:08):

fitzgen merged PR #11341.


Last updated: Jan 10 2026 at 02:36 UTC