-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[release/6.0-staging] TypeDescriptor threading fixes #101306
Merged
steveharter
merged 4 commits into
dotnet:release/6.0-staging
from
steveharter:TypeConverterThreading60
Apr 25, 2024
Merged
[release/6.0-staging] TypeDescriptor threading fixes #101306
steveharter
merged 4 commits into
dotnet:release/6.0-staging
from
steveharter:TypeConverterThreading60
Apr 25, 2024
Conversation
This file contains 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
Tagging subscribers to this area: @dotnet/area-system-componentmodel |
jkotas
changed the title
TypeDescriptor threading fixes
[release/6.0-staging] TypeDescriptor threading fixes
Apr 20, 2024
rbhanda
added
Servicing-approved
Approved for servicing release
and removed
Servicing-consider
Issue for next servicing release review
labels
Apr 23, 2024
ericstj
approved these changes
Apr 23, 2024
CI Failures are known, and also occurring with other PRs such as https://github.com/dotnet/runtime/runs/23919179513
|
/ba-g Build Analysis does not show actionable failures; only shows 2 known test errors |
steveharter
merged commit Apr 25, 2024
edcb9df
into
dotnet:release/6.0-staging
124 of 130 checks passed
Sign up for free
to 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.
Backport of #96846 and #97236 to release/6.0-staging.
The 8.0 backport is at #101305.
Customer Impact
See issues #92394 and #30024.
There is a threading issue corrupts internal caches, causing various
TypeDescriptor
methods to return incorrect information. The most likely time it would occur is during warm-up when there are several concurrent threads using variousTypeDescriptor
static methods.Technical details
The locking behavior was not correct for multiple threads. Various analysis at:
Regression
No, it appears to have existed in .NET Framework before being ported to .NET Core.
Testing
Previous PR attempts added tests which were ported. Additional tests added for deadlock cases. In addition, the fixes were successfully applied to a .NET Framework local build which was tested by an external customer reporting these issues. It is expected to be ported to .NET framework as well.
The fixes were in v9.0 around 4 months ago with no issues reported.
Risk
Low, as noted there have been no regressions notes in the last 4 months.