Skip to content

Commit

Permalink
Fixed SuperPMI collection by instantiate 'GetExactClasses' if it is n…
Browse files Browse the repository at this point in the history
…ull (dotnet#74037)
  • Loading branch information
TIHan committed Aug 17, 2022
1 parent 2fc2241 commit 69e7178
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/tools/superpmi/superpmi-shared/methodcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2705,6 +2705,9 @@ CorInfoTypeWithMod MethodContext::repGetArgType(CORINFO_SIG_INFO* sig,

void MethodContext::recGetExactClasses(CORINFO_CLASS_HANDLE baseType, int maxExactClasses, CORINFO_CLASS_HANDLE* exactClsRet, int result)
{
if (GetExactClasses == nullptr)
GetExactClasses = new LightWeightMap<DLD, DLD>();

DLD key;
ZeroMemory(&key, sizeof(key));
key.A = CastHandle(baseType);
Expand Down

0 comments on commit 69e7178

Please sign in to comment.