alexcrichton opened PR #13659 from alexcrichton:fix-host-leak to bytecodealliance:main:
This commit fixes issues in the implementation of futures and streams for component-model-async where when a guest dropped its half of a future/stream connection, and the other half was owned by the host, then the host-owned half would be leaked within the store.
This is similar in spirit to #13515 but has a smaller test and additionally takes into account some review comments.
Closes #13515
<!--
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 pchickey for a review on PR #13659.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13659.
alexcrichton unassigned pchickey from PR #13659 cm-async: Fix leaking transmit state with "half hosts".
alexcrichton requested dicej for a review on PR #13659.
:thumbs_up: dicej submitted PR review.
github-actions[bot] added the label wasmtime:api on PR #13659.
alexcrichton edited PR #13659:
This commit fixes issues in the implementation of futures and streams for component-model-async where when a guest dropped its half of a future/stream connection, and the other half was owned by the host, then the host-owned half would be leaked within the store.
This is similar in spirit to #13515 but has a smaller test and additionally takes into account some review comments.
Closes #13514
Closes #13515<!--
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 updated PR #13659.
alexcrichton has enabled auto merge for PR #13659.
alexcrichton added PR #13659 cm-async: Fix leaking transmit state with "half hosts" to the merge queue
:check: alexcrichton merged PR #13659.
alexcrichton removed PR #13659 cm-async: Fix leaking transmit state with "half hosts" from the merge queue
Last updated: Jul 29 2026 at 05:03 UTC