-
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] Remove locks from COM events delegate management. #76035
Conversation
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsBackport of #75863 to release/6.0 Customer ImpactTestingRiskIMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved. please get a code review. we will take for consideration in 6.0.x
Approved. Signed-off. CI green. No OOB package authoring changes needed for this one. Ready to merge. |
Backport of #75863 to release/6.0
/cc @AaronRobinsonMSFT, @stephentoub
Customer Impact
This is a customer reported issue - #75863, both internal and external to Microsoft. The issue is triggering a COM Event A when handling a COM Event A. It represents a regression form .NET Framework. It was introduced in .NET Core 3.1, but as more people start to move onto .NET 5+ this will hit more. It is limited to COM Events so narrow in customer base, but those that use it will find it difficult to adopt as there is no workaround.
Testing
Validated this using a customer reproduction example. No new test was added due to the complexity of scenario and the narrowness of impact. The implementation was reduced in complexity substantially and is now more in line with best-practice concurrency related solutions in .NET Core.
Risk
This is a minor risk. Invoke locks were removed and immutability of a collection introduced. The reduction of complexity represented in the functional change makes this lower risk but the scenario is limited to COM Events which are even rarer so supporting a minor risk designation.