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 makingkeep_residentoptions 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:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested dicej for a review on PR #11341.
alexcrichton requested wasmtime-core-reviewers for a review on PR #11341.
fitzgen submitted PR review:
:+1:
fitzgen has enabled auto merge for PR #11341.
dicej submitted PR review.
fitzgen merged PR #11341.
Last updated: Jan 10 2026 at 02:36 UTC