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

[release/8.0-staging] Sigsegv when calling a virtual method via UnsafeAccessorAttribute #101649

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/coreclr/vm/jitinterface.cpp
Expand Up @@ -11881,23 +11881,6 @@ HRESULT CEEJitInfo::allocPgoInstrumentationBySchema(

JIT_TO_EE_TRANSITION();

// We need to know the code size. Typically we can get the code size
// from m_ILHeader. For dynamic methods, m_ILHeader will be NULL, so
// for that case we need to use DynamicResolver to get the code size.

unsigned codeSize = 0;
if (m_pMethodBeingCompiled->IsDynamicMethod())
{
unsigned stackSize, ehSize;
CorInfoOptions options;
DynamicResolver * pResolver = m_pMethodBeingCompiled->AsDynamicMethodDesc()->GetResolver();
pResolver->GetCodeInfo(&codeSize, &stackSize, &options, &ehSize);
}
else
{
codeSize = m_ILHeader->GetCodeSize();
}

#ifdef FEATURE_PGO
hr = PgoManager::allocPgoInstrumentationBySchema(m_pMethodBeingCompiled, pSchema, countSchemaItems, pInstrumentationData);
#else
Expand Down