69 references to HandleType
Microsoft.Diagnostics.DataContractReader.Abstractions (3)
Contracts\IGC.cs (3)
161List<HandleData> GetHandles(HandleType[] types) => throw new NotImplementedException(); 162HandleType[] GetSupportedHandleTypes() => throw new NotImplementedException(); 163HandleType[] GetHandleTypes(uint[] types) => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (46)
Contracts\GC\GC_1.cs (46)
330List<HandleData> IGC.GetHandles(HandleType[] types) 332List<HandleType> typesList = types.ToList(); 361foreach (HandleType type in typesList) 541HandleType[] IGC.GetSupportedHandleTypes() 543List<HandleType> supportedTypes = 545HandleType.WeakShort, 546HandleType.WeakLong, 547HandleType.Strong, 548HandleType.Pinned, 549HandleType.Dependent, 550HandleType.WeakInteriorPointer 555supportedTypes.Add(HandleType.RefCounted); 559supportedTypes.Add(HandleType.CrossReference); 564HandleType[] IGC.GetHandleTypes(uint[] types) 566List<HandleType> handleTypes = new(); 572HandleType? mappedType = type switch 574(uint)HandleType_1.WeakShort => HandleType.WeakShort, 575(uint)HandleType_1.WeakLong => HandleType.WeakLong, 576(uint)HandleType_1.Strong => HandleType.Strong, 577(uint)HandleType_1.Pinned => HandleType.Pinned, 578(uint)HandleType_1.RefCounted => HandleType.RefCounted, 579(uint)HandleType_1.Dependent => HandleType.Dependent, 580(uint)HandleType_1.WeakInteriorPointer => HandleType.WeakInteriorPointer, 581(uint)HandleType_1.CrossReference => HandleType.CrossReference, 585if (mappedType is HandleType concreteType) 593private static uint GetInternalHandleType(HandleType type) 597HandleType.WeakShort => (uint)HandleType_1.WeakShort, 598HandleType.WeakLong => (uint)HandleType_1.WeakLong, 599HandleType.Strong => (uint)HandleType_1.Strong, 600HandleType.Pinned => (uint)HandleType_1.Pinned, 601HandleType.Dependent => (uint)HandleType_1.Dependent, 602HandleType.WeakInteriorPointer => (uint)HandleType_1.WeakInteriorPointer, 603HandleType.RefCounted => (uint)HandleType_1.RefCounted, 604HandleType.CrossReference => (uint)HandleType_1.CrossReference, 609private void GetHandlesForSegment(Data.TableSegment tableSegment, HandleType type, List<HandleData> handles) 625private void GetHandlesForBlock(Data.TableSegment tableSegment, byte uBlock, HandleType type, List<HandleData> handles) 638private static bool IsStrongReference(HandleType type) => type == HandleType.Strong || type == HandleType.Pinned; 639private static bool HasSecondary(HandleType type) => type == HandleType.Dependent || type == HandleType.WeakInteriorPointer || type == HandleType.CrossReference; 640private static bool IsRefCounted(HandleType type) => type == HandleType.RefCounted; 642private HandleData CreateHandleData(TargetPointer handleAddress, byte uBlock, uint intraBlockIndex, Data.TableSegment tableSegment, HandleType type)
Microsoft.Diagnostics.DataContractReader.Legacy (20)
Dbi\Helpers\RefWalk.cs (16)
51HandleType[] requestedTypes = GetRequestedHandleTypes(); 69private HandleType[] GetRequestedHandleTypes() 73List<HandleType> types = new(); 75types.Add(HandleType.Strong); 77types.Add(HandleType.Pinned); 79types.Add(HandleType.WeakShort); 81types.Add(HandleType.WeakLong); 83types.Add(HandleType.RefCounted); 85types.Add(HandleType.Dependent); 91HashSet<HandleType> supported = new(_gc.GetSupportedHandleTypes()); 101case HandleType.Strong: 104case HandleType.Pinned: 107case HandleType.WeakShort: 110case HandleType.WeakLong: 113case HandleType.RefCounted: 119case HandleType.Dependent:
SOSDacImpl.cs (4)
1612public SOSHandleEnum(Target target, HandleType[] types, ISOSHandleEnum? legacyHandleEnum) 1619private SOSHandleData[] GetHandles(HandleType[] types) 1837HandleType[] supportedHandleTypes = gc.GetSupportedHandleTypes(); 1874HandleType[] handleTypes = gc.GetHandleTypes(types);