-
Notifications
You must be signed in to change notification settings - Fork 5k
Fix implementation of IFindReferenceTargetsCallback::FoundTrackerTarget #115921
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
Conversation
Tagging subscribers to this area: @dotnet/interop-contrib |
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/ComWrappers.cs
Outdated
Show resolved
Hide resolved
…get to correctly record the found reference paths.
00f8f7c
to
d4fb6e5
Compare
.../System.Private.CoreLib/src/System/Runtime/InteropServices/TrackerObjectManager.NativeAot.cs
Outdated
Show resolved
Hide resolved
Maui is crashing because of this, we will need this on Preview 5 |
/backport to release/10.0-preview5 |
Started backporting to release/10.0-preview5: https://github.com/dotnet/runtime/actions/runs/15279956054 |
.../System.Private.CoreLib/src/System/Runtime/InteropServices/TrackerObjectManager.NativeAot.cs
Outdated
Show resolved
Hide resolved
.../System.Private.CoreLib/src/System/Runtime/InteropServices/TrackerObjectManager.NativeAot.cs
Outdated
Show resolved
Hide resolved
/backport to release/10.0-preview5 |
Started backporting to release/10.0-preview5: https://github.com/dotnet/runtime/actions/runs/15283671298 |
Fixes #115881
The implementation of
FoundTrackerTarget
from the ComWrappers refactoring incorrectly used the target as the source and compared syncblocks before creating the connection from source to target. As a result, the target object's live was not tied to the source object's lifetime and was released early even though it was still referenced.