fitzgen opened PR #12993 from fitzgen:handle-oom-in-component-instance-pre-instantiate-async to bytecodealliance:main:
Fix infallible allocations in the component model instantiation path:
- Use TryPrimaryMap for instance_states and instances in ComponentInstance
- Use TryPrimaryMap for instances in ComponentStoreData
- Use TryVec for scopes in ComponentTasksNotConcurrent
- Use TryPrimaryMap for guest field in ResourceTables
- Use try_new for Arc and Box allocations in instantiation/call paths
- Make push_component_instance and push_instance_id return Result
- Make enter_call_not_concurrent return Result
<!--
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
-->
fitzgen requested alexcrichton for a review on PR #12993.
fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12993.
fitzgen requested wasmtime-core-reviewers for a review on PR #12993.
alexcrichton submitted PR review.
github-actions[bot] added the label fuzzing on PR #12993.
github-actions[bot] added the label wasmtime:api on PR #12993.
github-actions[bot] commented on PR #12993:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "fuzzing", "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- fitzgen: fuzzing
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen updated PR #12993.
fitzgen has enabled auto merge for PR #12993.
fitzgen updated PR #12993.
fitzgen updated PR #12993.
fitzgen added PR #12993 Add OOM test for component InstancePre::instantiate_async to the merge queue.
fitzgen merged PR #12993.
fitzgen removed PR #12993 Add OOM test for component InstancePre::instantiate_async from the merge queue.
Last updated: Apr 12 2026 at 23:10 UTC