From e1c5b515aa744c9e45731f7ea32f85a8466f7fe0 Mon Sep 17 00:00:00 2001 From: Kevin Gosse Date: Mon, 15 Sep 2025 19:36:01 +0200 Subject: [PATCH] Populate dependent handles --- src/Microsoft.Diagnostics.Runtime/ClrHandle.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Microsoft.Diagnostics.Runtime/ClrHandle.cs b/src/Microsoft.Diagnostics.Runtime/ClrHandle.cs index cacab6035..a72c6febc 100644 --- a/src/Microsoft.Diagnostics.Runtime/ClrHandle.cs +++ b/src/Microsoft.Diagnostics.Runtime/ClrHandle.cs @@ -27,6 +27,11 @@ internal ClrHandle(ClrRuntime runtime, in ClrHandleInfo handle) HandleKind = handle.Kind; ReferenceCount = handle.RefCount; RootKind = IsStrong ? (ClrRootKind)HandleKind : ClrRootKind.None; + + if (handle.Kind == ClrHandleKind.Dependent && handle.DependentTarget != 0) + { + Dependent = runtime.Heap.GetObject(handle.DependentTarget); + } } ///