Skip to content

Test and define self-thread-index case of thread.*-then-promote - #687

Open
lukewagner wants to merge 3 commits into
mainfrom
add-tests
Open

Test and define self-thread-index case of thread.*-then-promote#687
lukewagner wants to merge 3 commits into
mainfrom
add-tests

Conversation

@lukewagner

Copy link
Copy Markdown
Member

This PR tweaks the thread.{suspend,yield}-then-promote built-ins to trap if attempting to promote themselves. This case seems likely to be a bug in guest code and to lead to bugs in host code, hence the trap. This PR also adds a bunch of WAST tests for interesting thread.*-then-* cases: calls during sync functions and interactions between implicit callback threads.

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.

1 participant