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

[release/8.0-staging] TypeDescriptor threading fixes #101305

Merged

Conversation

steveharter
Copy link
Member

@steveharter steveharter commented Apr 19, 2024

Backport of #96846 and #97236 to release/8.0-staging.

The 6.0 backport is at #101306.

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 various TypeDescriptor 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.

Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-componentmodel
See info in area-owners.md if you want to be subscribed.

@jkotas jkotas changed the title TypeDescriptor threading fixes [release/8.0-staging] TypeDescriptor threading fixes Apr 20, 2024
@steveharter steveharter added this to the 8.0.x milestone Apr 23, 2024
@steveharter steveharter added the Servicing-consider Issue for next servicing release review label Apr 23, 2024
@rbhanda rbhanda modified the milestones: 8.0.x, 8.0.6 Apr 23, 2024
@rbhanda rbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Apr 23, 2024
@ericstj ericstj merged commit def0e85 into dotnet:release/8.0-staging Apr 23, 2024
109 of 113 checks passed
@steveharter steveharter deleted the TypeConverterThreading80 branch April 24, 2024 18:01
@github-actions github-actions bot locked and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants