TartanLlama opened PR #12123 from TartanLlama:sy/sync-multithreading to bytecodealliance:main:
<!--
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
-->
TartanLlama edited PR #12123:
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.
Fixes #11954
TartanLlama updated PR #12123.
TartanLlama updated PR #12123.
TartanLlama updated PR #12123.
TartanLlama updated PR #12123.
TartanLlama updated PR #12123.
TartanLlama edited PR #12123:
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.
Fixes #11954
TartanLlama edited PR #12123:
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
TartanLlama updated PR #12123.
TartanLlama updated PR #12123.
TartanLlama updated PR #12123.
Last updated: Dec 06 2025 at 07:03 UTC