Skip to content

Commit 95306c7

Browse files
Remove dead code in PGO scenarios. (#101648)
1 parent 81c1d87 commit 95306c7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/coreclr/vm/jitinterface.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12075,23 +12075,6 @@ HRESULT CEEJitInfo::allocPgoInstrumentationBySchema(
1207512075

1207612076
JIT_TO_EE_TRANSITION();
1207712077

12078-
// We need to know the code size. Typically we can get the code size
12079-
// from m_ILHeader. For dynamic methods, m_ILHeader will be NULL, so
12080-
// for that case we need to use DynamicResolver to get the code size.
12081-
12082-
unsigned codeSize = 0;
12083-
if (m_pMethodBeingCompiled->IsDynamicMethod())
12084-
{
12085-
unsigned stackSize, ehSize;
12086-
CorInfoOptions options;
12087-
DynamicResolver * pResolver = m_pMethodBeingCompiled->AsDynamicMethodDesc()->GetResolver();
12088-
pResolver->GetCodeInfo(&codeSize, &stackSize, &options, &ehSize);
12089-
}
12090-
else
12091-
{
12092-
codeSize = m_ILHeader->GetCodeSize();
12093-
}
12094-
1209512078
#ifdef FEATURE_PGO
1209612079
hr = PgoManager::allocPgoInstrumentationBySchema(m_pMethodBeingCompiled, pSchema, countSchemaItems, pInstrumentationData);
1209712080
#else

0 commit comments

Comments
 (0)