forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ComWrappers interaction with the IReferenceTracker interface (dot…
…net#45624) * Fix ComWrappers' leak in aggregation scenario Convert Managed Object Wrapper (MOW) GC Handle from HNDTYPE_STRONG to HNDTYPE_REFCOUNTED. Add new CreateObjectFlags value to indicate aggregation during CreateObject scenario. This isn't reflected in the managed .NET 5 API surface area. In the ReferenceTracker scenario the ref count may never reach 0 so the MOW destructor needs to handle that case. The previous expectation for a null in the destructor was based on the STRONG handle logic. During aggregation scenarios involving ReferenceTracker, ownership of the inner is now the responsibility of the runtime. * ComWrappers tests
- Loading branch information
1 parent
84c817b
commit a7c3179
Showing
13 changed files
with
1,016 additions
and
253 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.