Skip to content

Commit

Permalink
JIT: fix superpmi for new method getMethodInstantiationArgument (#109321
Browse files Browse the repository at this point in the history
)

Implementation was copied from getTypeInstantiationArgument but not
fully updated.
  • Loading branch information
AndyAyersMS authored Oct 29, 2024
1 parent aa5f862 commit 8f8ac8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/coreclr/tools/superpmi/superpmi-shared/methodcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6679,13 +6679,13 @@ void MethodContext::recGetMethodInstantiationArgument(CORINFO_METHOD_HANDLE ftn,
key.A = CastHandle(ftn);
key.B = index;
DWORDLONG value = CastHandle(result);
GetTypeInstantiationArgument->Add(key, value);
DEBUG_REC(dmpGetTypeInstantiationArgument(key, value));
GetMethodInstantiationArgument->Add(key, value);
DEBUG_REC(dmpGetMethodInstantiationArgument(key, value));
}
void MethodContext::dmpGetMethodInstantiationArgument(DLD key, DWORDLONG value)
{
printf("GetMethodInstantiationArgument key - methodNonNull-%" PRIu64 ", index-%u, value NonNull-%" PRIu64 "", key.A, key.B, value);
GetTypeInstantiationArgument->Unlock();
GetMethodInstantiationArgument->Unlock();
}
CORINFO_CLASS_HANDLE MethodContext::repGetMethodInstantiationArgument(CORINFO_METHOD_HANDLE ftn, unsigned index)
{
Expand All @@ -6695,7 +6695,7 @@ CORINFO_CLASS_HANDLE MethodContext::repGetMethodInstantiationArgument(CORINFO_ME
key.B = index;

DWORDLONG value = LookupByKeyOrMissNoMessage(GetMethodInstantiationArgument, key);
DEBUG_REP(dmpGetTypeInstantiationArgument(key, value));
DEBUG_REP(dmpGetMethodInstantiationArgument(key, value));
return (CORINFO_CLASS_HANDLE)value;
}

Expand Down

0 comments on commit 8f8ac8e

Please sign in to comment.