Skip to content
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

[browser][MT] fix Promise cancelation race condition #99259

Merged
merged 6 commits into from
Mar 6, 2024

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Mar 4, 2024

  • moved more logic to PromiseHolder on js side.
  • introduced shared memory PromiseHolderState with IsResolving state
  • implemented compareExchangeI32 and use it to signal which side will resolve the Promise/Task

Contributes to #98721

- introduced shared memory PromiseHolderState with IsResolving state
- implemeted compareExchangeI32 and use it to signal which side will resove the Promise/Task
@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm labels Mar 4, 2024
@pavelsavara pavelsavara added this to the 9.0.0 milestone Mar 4, 2024
@pavelsavara pavelsavara requested review from kg and maraf March 4, 2024 20:03
@pavelsavara pavelsavara self-assigned this Mar 4, 2024
@ghost
Copy link

ghost commented Mar 4, 2024

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details
  • moved more logic to PromiseHolder
  • introduced shared memory PromiseHolderState with IsResolving state
  • implemeted compareExchangeI32 and use it to signal which side will resove the Promise/Task

Contributes to #98721

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, area-System.Runtime.InteropServices.JavaScript, os-browser

Milestone: 9.0.0

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@pavelsavara pavelsavara marked this pull request as ready for review March 5, 2024 13:37
@pavelsavara pavelsavara requested a review from lewing as a code owner March 5, 2024 13:37
@pavelsavara
Copy link
Member Author

The CI failure is #98406

@pavelsavara pavelsavara merged commit 7183d70 into dotnet:main Mar 6, 2024
120 of 122 checks passed
@pavelsavara pavelsavara deleted the browser_cancelation_handle branch March 6, 2024 14:17
@pavelsavara
Copy link
Member Author

This didn't 100% help Log

@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants