提交 622ce603 编写于 作者: M Mukul Sabharwal 提交者: Jan Kotas

Fix GetObjectReferences API when caller doesn't zero the param (dotnet/coreclr#24299)



Commit migrated from https://github.com/dotnet/coreclr/commit/00a853313ee2943ce2e97e4e9e7a114e0e7bc689
上级 def74339
......@@ -6836,6 +6836,7 @@ HRESULT ProfToEEInterfaceImpl::GetObjectReferences(ObjectID objectId, ULONG32 cN
{
if (cNumReferences == 0)
{
*pcNumReferences = 0;
GCHeapUtilities::GetGCHeap()->DiagWalkObject(pBO, &CountContainedObjectRef, (void*)pcNumReferences);
}
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册