Skip to content

Add initial packed waitqueue type - #8323

Merged
stevenfontanella merged 5 commits into
mainfrom
waitqueue
Feb 18, 2026
Merged

Add initial packed waitqueue type#8323
stevenfontanella merged 5 commits into
mainfrom
waitqueue

Conversation

@stevenfontanella

@stevenfontanella stevenfontanella commented Feb 13, 2026

Copy link
Copy Markdown
Member

Part of #8315. Adds initial binary + text parsing and printing for the packed waitqueue type.

Beyond the rest of the functionality, we also need to add validator rules that waitqueue can only be used when shared everything threads is enabled. Will add that in the next PR.

@stevenfontanella
stevenfontanella marked this pull request as ready for review February 13, 2026 07:26
Comment thread src/wasm-type.h

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems the spec discussion is ongoing but lgtm to land this if it helps investigation for the spec.

@kripken

kripken commented Feb 13, 2026

Copy link
Copy Markdown
Member

Oh, I would fuzz this before landing. I wouldn't be surprised if the fuzzer can do something surprising with the new testcase here - may need to disallow it.

@stevenfontanella

Copy link
Copy Markdown
Member Author

Will fuzz before merging and add a validator rule disallowing WaitQueue fields unless shared everything threads is enabled in the next PR.

@stevenfontanella

Copy link
Copy Markdown
Member Author

Ran the fuzzer for 9000 iterations with no errors. It hit an error at the end but it was due to a stack overflow from a Wasm binary with a deep call stack and succeeded after I increased my stack size (and was the same from main as my branch).

@stevenfontanella
stevenfontanella enabled auto-merge (squash) February 18, 2026 21:20
@stevenfontanella
stevenfontanella merged commit c04ad32 into main Feb 18, 2026
17 checks passed
@stevenfontanella
stevenfontanella deleted the waitqueue branch February 18, 2026 21:56
@stevenfontanella stevenfontanella linked an issue Feb 18, 2026 that may be closed by this pull request
5 tasks
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.

Waitqueue / waitqueue ref support in Binaryen

3 participants