Skip to content

Commit

Permalink
[cdac] Fix ISOSDacInterface13.TraverseLoaderHeap parameter type (dotn…
Browse files Browse the repository at this point in the history
  • Loading branch information
elinor-fung authored and hez2010 committed Dec 14, 2024
1 parent 15e01d4 commit 07e85b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions src/native/managed/cdacreader/src/Legacy/ISOSDacInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -556,19 +556,12 @@ internal unsafe partial interface ISOSDacInterface12
int GetGlobalAllocationContext(ulong* allocPtr, ulong* allocLimit);
}

internal struct VISITHEAP
{
public ulong blockData;
public nuint blockSize;
public Interop.BOOL blockIsCurrentBlock;
}

[GeneratedComInterface]
[Guid("3176a8ed-597b-4f54-a71f-83695c6a8c5e")]
internal unsafe partial interface ISOSDacInterface13
{
[PreserveSig]
int TraverseLoaderHeap(ulong loaderHeapAddr, /*LoaderHeapKind*/ int kind, VISITHEAP pCallback);
int TraverseLoaderHeap(ulong loaderHeapAddr, /*LoaderHeapKind*/ int kind, /*VISITHEAP*/ delegate* unmanaged<ulong, nuint, Interop.BOOL> pCallback);
[PreserveSig]
int GetDomainLoaderAllocator(ulong domainAddress, ulong* pLoaderAllocator);
[PreserveSig]
Expand Down
2 changes: 1 addition & 1 deletion src/native/managed/cdacreader/src/Legacy/SOSDacImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ int ISOSDacInterface12.GetGlobalAllocationContext(ulong* allocPtr, ulong* allocL
#endregion ISOSDacInterface12

#region ISOSDacInterface13
int ISOSDacInterface13.TraverseLoaderHeap(ulong loaderHeapAddr, /*LoaderHeapKind*/ int kind, VISITHEAP pCallback)
int ISOSDacInterface13.TraverseLoaderHeap(ulong loaderHeapAddr, /*LoaderHeapKind*/ int kind, /*VISITHEAP*/ delegate* unmanaged<ulong, nuint, Interop.BOOL> pCallback)
=> _legacyImpl13 is not null ? _legacyImpl13.TraverseLoaderHeap(loaderHeapAddr, kind, pCallback) : HResults.E_NOTIMPL;
int ISOSDacInterface13.GetDomainLoaderAllocator(ulong domainAddress, ulong* pLoaderAllocator)
=> _legacyImpl13 is not null ? _legacyImpl13.GetDomainLoaderAllocator(domainAddress, pLoaderAllocator) : HResults.E_NOTIMPL;
Expand Down

0 comments on commit 07e85b6

Please sign in to comment.