-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix Asyncify.handleAsync conflict with PROXY_SYNC_ASYNC #26513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9645,6 +9645,18 @@ def test_poll_blocking_asyncify(self): | |
| self.skipTest('test requires setTimeout which is not supported under v8') | ||
| self.do_runf('core/test_poll_blocking_asyncify.c', 'done\n') | ||
|
|
||
| @no_esm_integration('WASM_ESM_INTEGRATION is not compatible with ASYNCIFY=1') | ||
| @requires_pthreads | ||
| def test_poll_blocking_asyncify_pthread(self): | ||
thiblahute marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # Only testing ASYNCIFY=1: JSPI's handleAsync is a plain async function | ||
| # and doesn't have this bug. Also, with_asyncify_and_jspi can't be | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should still test both versions of ASYNCIFY here. |
||
| # combined with requires_pthreads since require_jspi may select d8 which | ||
| # doesn't support pthreads (require_pthreads then hard-fails instead of | ||
| # skipping). | ||
| self.set_setting('ASYNCIFY') | ||
| self.do_runf('core/test_poll_blocking.c', 'done\n', | ||
| cflags=['-sPROXY_TO_PTHREAD', '-sEXIT_RUNTIME']) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can put this all one one line (we allow longer-than-normal lines here in the test code). |
||
|
|
||
| @parameterized({ | ||
| '': ([],), | ||
| 'pthread': (['-pthread'],), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can / should this also be true for
ASYNCIFY == 2? I don't see any reason to callhandleAsyncin that case either.