[release/9.0-staging] Move ComWrappers AddRef to C/C++ by github-actions[bot] · Pull Request #110815 · dotnet/runtime

and others added 8 commits

December 18, 2024 15:24
Xaml invokes AddRef while holding a lock that it *also* holds while a GC is in progress. Managed AddRef had to synchronize with the GC that caused intermittent deadlocks with the other thread holding Xaml's lock.

This change reverts the managed AddRef implementation to match .NET Native and CoreCLR.

Fixes #110747
Co-authored-by: Aaron Robinson <arobins@microsoft.com>
…e/InteropServices/ComWrappers.NativeAot.cs

AaronRobinsonMSFT

@jeffschwMSFT

@jkotas jkotas deleted the backport/pr-110762-to-release/9.0-staging branch

January 8, 2025 19:37

This was referenced

Jan 8, 2025