alexcrichton opened PR #11456 from alexcrichton:instance-allocation-async to bytecodealliance:main:
This commit is a step in preparation for #11430, notably core instance allocation, or
StoreOpaque::allocate_instanceis now anasync fn. This function does not actually use theasync-ness just yet so it's a noop from that point of view, but this propagates outwards to enough locations that I wanted to split this off to make future changes more digestable.Notably some creation functions here such as making an
Instance,Table, orMemoryare refactored internally to use this newasyncfunction. Annotations ofassert_readyorone_pollare used as appropriate as well.For reference this commit was benchmarked with our
instantiation.rsbenchmark in the pooling allocator and shows no changes relative to the original baseline from before-async-PRs.<!--
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 #11456.
alexcrichton requested wasmtime-core-reviewers for a review on PR #11456.
alexcrichton closed without merge PR #11456.
alexcrichton commented on PR #11456:
Alas should have remembered to run tests. Unfortunately this won't be able to land separately, I'll try to keep this as a separate commit though.
Last updated: Dec 06 2025 at 07:03 UTC