alexcrichton opened PR #12753 from alexcrichton:minor-refactors to bytecodealliance:main:
In reading over #12216 I found a few related but also somewhat orthogonal refactors that I wanted to implement, and thus this commit. Changes here are:
Handling pointer pairs for lists/maps/strings is now more uniform with a single set of functions doing the lift/lower to flat/memory. Less "FIXME 4311" spread throughout effectively.
Conditional defines and organization of the
HashMap-related impls were tweaked, for example impls onHashMapare now unconditional as well asTryHashMap. Some internals were refactored to in theory reduce complexity, but this is also subjective.Lifting a
map<K, V>now consumes fuel, a recent change, to ensure that resource exhaustion in the host is limited.<!--
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 wasmtime-core-reviewers for a review on PR #12753.
alexcrichton requested fitzgen for a review on PR #12753.
github-actions[bot] added the label wasmtime:api on PR #12753.
Last updated: Mar 23 2026 at 16:19 UTC