alexcrichton requested dicej for a review on PR #12767.
alexcrichton requested wasmtime-core-reviewers for a review on PR #12767.
alexcrichton opened PR #12767 from alexcrichton:hostcall-fuel-streams to bytecodealliance:main:
For guest-to-guest communication stream reads/writes rendezvousing together will currently copy data through
Val. This is expected to become more optimized in the future, but for now this needs to consume the concept of "hostcall fuel" introduced in #12652 to ensure that the guest can't exhaust memory in the host. This additionally tweaks some hostcall fuel calculations to more accurately reflect the size of values on the host, notably by usingsize_of::<Thing>()on the host rather than the size in the guest.Closes #12674
<!--
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
-->
dicej submitted PR review.
alexcrichton added PR #12767 Consume hostcall fuel when buffering stream data in the host to the merge queue.
alexcrichton merged PR #12767.
alexcrichton removed PR #12767 Consume hostcall fuel when buffering stream data in the host from the merge queue.
Last updated: Mar 23 2026 at 16:19 UTC