Skip to content

Fix handling of context slots in component compositions - #14139

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-sync-context-slots
Aug 14, 2026
Merged

Fix handling of context slots in component compositions#14139
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fix-sync-context-slots

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit fixes handling of context.{get,set} slots in sync-to-sync adapters generated by Wasmtime's FACT pass. Previously no care was taken here meaning that the context slots were wrong for post-return and realloc calls. All slots are now managed as they are on the host, mirroring the logic internally for management.

This commit fixes handling of `context.{get,set}` slots in sync-to-sync
adapters generated by Wasmtime's FACT pass. Previously no care was taken
here meaning that the context slots were wrong for `post-return` and
`realloc` calls. All slots are now managed as they are on the host,
mirroring the logic internally for management.
@alexcrichton
alexcrichton requested a review from a team as a code owner August 14, 2026 15:32
@alexcrichton
alexcrichton requested review from dicej and removed request for a team August 14, 2026 15:32
@alexcrichton
alexcrichton added this pull request to the merge queue Aug 14, 2026
Merged via the queue into bytecodealliance:main with commit bc2f967 Aug 14, 2026
53 checks passed
@alexcrichton
alexcrichton deleted the fix-sync-context-slots branch August 14, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants