Skip to content

Conversation

@TartanLlama
Copy link
Contributor

@TartanLlama TartanLlama commented Dec 4, 2025

Threads are currently not created on sync->sync export calls, sync host->guest calls, and module-level start function calls. This PR adds support to this for all of these.

I added a component-model-async feature to wasmtime-environ so that sync->sync adapters are compiled as they were originally for wasip2 code, avoiding changing performance characteristics.

Rather than use the existing prepare_call + start_call machinery, I introduced sync_to_sync_enter/exit_call intrinsics to avoid adding additional host frames to the stack for sync calls

Fixes #11954

@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Dec 4, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Ship WASIp3 Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

resources.wast test failing in sync mode with cooperative multithreading

1 participant