#ifdef FEATURE_PERFMAP
PerfMap::PerfMapType perfMapType = (PerfMap::PerfMapType)type;
- if (perfMapType == PerfMap::PerfMapType::DISABLED || perfMapType > PerfMap::PerfMapType::JITDUMP)
+ if (perfMapType == PerfMap::PerfMapType::DISABLED || perfMapType > PerfMap::PerfMapType::PERFMAP)
{
return DS_IPC_E_INVALIDARG;
}
IJitManager::MethodRegionInfo methodRegionInfo;
codeInfo.GetMethodRegionInfo(&methodRegionInfo);
_ASSERTE(methodRegionInfo.hotStartAddress == codeStart);
+ _ASSERTE(methodRegionInfo.hotSize > 0);
PrepareCodeConfig config(!nativeCodeVersion.IsNull() ? nativeCodeVersion : NativeCodeVersion(pMethod), FALSE, FALSE);
PerfMap::LogJITCompiledMethod(pMethod, codeStart, methodRegionInfo.hotSize, &config);