Skip to content

[WASM] Fix deadlock when instantiating pthread worker pool - #74240

Merged
lewing merged 1 commit into
dotnet:mainfrom
simonrozsival:fix-instantiate-wasm-pthread-worker-pool-deadlock
Aug 21, 2022
Merged

[WASM] Fix deadlock when instantiating pthread worker pool#74240
lewing merged 1 commit into
dotnet:mainfrom
simonrozsival:fix-instantiate-wasm-pthread-worker-pool-deadlock

Conversation

@simonrozsival

Copy link
Copy Markdown
Member

I ran into an issue with app initialization with WASM threads enabled. When the number of workers in the pool is set to 0 (which is a valid value), the app awaits a promise that will never resolve. This PR fixes it.

@ghost

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@lambdageeklambdageek 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.

Good catch, thanks!

@ghost

Copy link
Copy Markdown

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

Issue Details

I ran into an issue with app initialization with WASM threads enabled. When the number of workers in the pool is set to 0 (which is a valid value), the app awaits a promise that will never resolve. This PR fixes it.

Author:simonrozsival
Assignees:simonrozsival
Labels:

arch-wasm, area-Threading-mono

Milestone:-

@lambdageek

Copy link
Copy Markdown
Member

/backport to release/7.0-rc1

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/7.0-rc1: https://github.com/dotnet/runtime/actions/runs/2889777637

@simonrozsival

Copy link
Copy Markdown
MemberAuthor

/azp run runtime-wasm

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@lewing
lewing merged commit 20aa900 into dotnet:mainAug 21, 2022
@ghostghost locked as resolved and limited conversation to collaborators Sep 21, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasmWebAssembly architecturearea-VM-threading-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@simonrozsival@lambdageek@lewing