Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JIT: fix superpmi for new method getMethodInstantiationArgument #109321

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading