Skip to content
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
17 changes: 0 additions & 17 deletions src/coreclr/vm/jitinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12075,23 +12075,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