Uh oh!
There was an error while loading. Please reload this page.
[mono][metadata] Replace use of mem manager lock with loader lock - #91190
Merged
Conversation
Hash table operations under the mem manager lock could end up taking the loader lock when performing type comparison, in the case where custom modifiers needed to be loaded. Use the loader lock instead to prevent deadlocks.
Uh oh!
There was an error while loading. Please reload this page.
lambdageek
approved these changes
Aug 28, 2023
lambdageek
commented
Aug 28, 2023
Member
We should backport to net8.0 /cc @SamMonoRT |
SamMonoRT
commented
Aug 28, 2023
Member
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This was referenced Aug 28, 2023
Open
carlossanlop
commented
Aug 29, 2023
Contributor
@BrzVlad@SamMonoRT@lambdageek is this ready to get backported? I think this is the most impactful failure in 8.0. |
BrzVlad
commented
Aug 30, 2023
MemberAuthor
/backport to release/8.0 |
Contributor
Started backporting to release/8.0: https://github.com/dotnet/runtime/actions/runs/6024778897 |
vargaz
commented
Sep 2, 2023
Contributor
Wouldn't be better to modify the hashtable equality functions so they wouldn't lock ? |
Member
That might be difficult - I think the issue is that they indirectly trigger |
vargaz
commented
Sep 2, 2023
Contributor
Is there a stacktrace which shows this happening ? |
MemberAuthor
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hash table operations under the mem manager lock could end up taking the loader lock when performing type comparison, in the case where custom modifiers needed to be loaded. Use the loader lock instead to prevent deadlocks.
Fixes#90834