Skip to content

Fix CABI definition of coop thread promotability and add tests - #696

Open
lukewagner wants to merge 1 commit into
mainfrom
fix-exclusive-bug
Open

Fix CABI definition of coop thread promotability and add tests#696
lukewagner wants to merge 1 commit into
mainfrom
fix-exclusive-bug

Conversation

@lukewagner

Copy link
Copy Markdown
Member

Currently, there is some divergence between Wasmtime and the spec for which coop threads can be switched-to during a synchronous call (when one thread blocks but others can be run). Digging into it, I realized that the spec is buggy (at ensuring the stated Component Invariant #3), so this PR fixes the spec to match what Wasmtime is already correctly doing. However, testing revealed other cases where I expect it's Wasmtime that we want to change to match the (fixed) spec.

(The WASTs added here assume #687 and its WAST tests pass (regarding thread.*-then-promote) and also probably dovetail with the WASTs merged in #691 discussed in wasmtime/#14117, so cc @alexcrichton and @dicej)

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