Stream: git-wasmtime

Topic: wasmtime / PR #11454 Relax the `Send` bound on fiber cre...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 20:19):

alexcrichton opened PR #11454 from alexcrichton:remove-send-bound-from-async-stuff to bytecodealliance:main:

This commit removes the need for Send for all usages of fiber-related
bits. The goal is that the future returned from async functions is
Send if all the inputs are Send, but there's no actual need to
require that in the function signatures themselves. This property was
identified in upcoming work to make more internals of Wasmtime async
where async functions are going to be used to implement the
synchronous path through Wasmtime where Send isn't a bound today, nor
ideally do we want to have it there.

The way this commit works is:

Note that the goal here is NOT to remove Send bounds throughout
Wasmtime. Many of them are still required, for example all the ones
related to Linker. The realization is that we can remove some of the
"edge" bounds on entrypoints where the resulting future can be
conditionally Send depending on T meaning we don't actually have to
write down any bounds ourselves.

This refactoring will enable future refactorings to have sync-and-async
functions use the same internals and neither entrypoint needs to have a
Send bound.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 20:19):

alexcrichton requested pchickey for a review on PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 20:19):

alexcrichton requested wasmtime-core-reviewers for a review on PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 20:20):

alexcrichton commented on PR #11454:

Procedurally this is built on https://github.com/bytecodealliance/wasmtime/pull/11444 and https://github.com/bytecodealliance/wasmtime/pull/11453. The goal is to work towards https://github.com/bytecodealliance/wasmtime/pull/11430

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 20:20):

alexcrichton updated PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 21:19):

fitzgen requested fitzgen for a review on PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 21:19):

fitzgen commented on PR #11454:

I can review this once it is rebased, now that the things it was based on top of are approved (and presumably will land shortly)

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 22:46):

alexcrichton updated PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 22:47):

alexcrichton commented on PR #11454:

I've rebased on the merge commit of https://github.com/bytecodealliance/wasmtime/pull/11444 since I need to head out soon, but if/when that PR merges github won't actually remove the commit from this PR, I think I'll have to open/close it or something like that (it's weird)

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 22:52):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 22:52):

fitzgen created PR review comment:

Maybe add a comment here that Rc is not Send, just to make it a little easier to follow the example. Alternatively, below say "Store<Rc<()>> is not Send because Rc<()> is not Send" or something.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 22:52):

fitzgen created PR review comment:

?

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 23:21):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2025 at 23:21):

alexcrichton created PR review comment:

what

(Forgot to delete after testing)

view this post on Zulip Wasmtime GitHub notifications bot (Aug 19 2025 at 02:19):

github-actions[bot] commented on PR #11454:

Subscribe to Label Action

cc @fitzgen

<details>
This issue or pull request has been labeled: "wasmtime:api", "wasmtime:ref-types"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Aug 19 2025 at 05:08):

alexcrichton updated PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 19 2025 at 05:09):

alexcrichton updated PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 19 2025 at 05:09):

alexcrichton has enabled auto merge for PR #11454.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 19 2025 at 05:43):

alexcrichton merged PR #11454.


Last updated: Dec 06 2025 at 06:05 UTC