Stream: git-wasmtime

Topic: wasmtime / PR #14630 [50.0.x] backport #14574 and #14624


view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2026 at 17:42):

dicej opened PR #14630 from dicej:bail-bug-backports-50.0.x to bytecodealliance:release-50.0.0:

Route more component adapters to the host (#14574)

Prior to this commit adapters were fully compiled inline for sync<->sync
adapters, but only if the lift/lowers were sync. This was incorrect when
the intermediate function type was async, however, in a number of
ways. This bug led to a number of bail_bug!s and incorrect execution
when using the FACT-compiled adapter. The fix in this commit is to route
async-typed adapted functions through the host like other async items.
This additionally refactors things internally with less duplication,
for example sync_start and async_start are now start_call, and the
various cases in the trampoline compiler are consolidated into one.

This changes preexisting behavior of one test, with the comment of the
test adjusted from explaining the prior behavior to explaining the
current behavior.

save and restore next_switch_item for sync-to-sync
calls

We were doing this correctly for other types of calls, but somehow never thought
of or tested for sync-to-sync calls :facepalm:.

Since we're not switching fibers in this case, we need to use a Vec as a stack
instead of the call stack, which is slightly annoying, but not a big deal.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2026 at 17:43):

dicej requested alexcrichton for a review on PR #14630.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2026 at 17:43):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2026 at 20:49):

github-actions[bot] added the label wasmtime:api on PR #14630.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 09 2026 at 21:35):

:check: alexcrichton merged PR #14630.


Last updated: Oct 11 2026 at 04:10 UTC