summaryrefslogtreecommitdiff
path: root/src/zap/zapinfo.cpp
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2017-03-30 18:16:58 -0700
committerBrian Sullivan <briansul@microsoft.com>2017-03-31 14:43:13 -0700
commited8ab5793008d3a87d5518458565a30e8d9a0414 (patch)
treeaf68fa1abade80d8141f8aa93b8207b7534f51eb /src/zap/zapinfo.cpp
parentc8e55616e98b97c66bfb24f194e3fbca68cc152b (diff)
downloadcoreclr-ed8ab5793008d3a87d5518458565a30e8d9a0414.tar.gz
coreclr-ed8ab5793008d3a87d5518458565a30e8d9a0414.tar.bz2
coreclr-ed8ab5793008d3a87d5518458565a30e8d9a0414.zip
Added DisableInlining flag to the ProfileData.
Extended CompileStatus to have both COMPILE_HOT_EXCLUDED and COMPILE_COLD_EXCLUDED. Fixes the IsNull implementation Fixes getBBProfileData to handle the case where pos can now be zero
Diffstat (limited to 'src/zap/zapinfo.cpp')
-rw-r--r--src/zap/zapinfo.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/zap/zapinfo.cpp b/src/zap/zapinfo.cpp
index 9713ce57ea..af0c41c4e4 100644
--- a/src/zap/zapinfo.cpp
+++ b/src/zap/zapinfo.cpp
@@ -1009,12 +1009,19 @@ HRESULT ZapInfo::getBBProfileData (
}
// The md must match.
- _ASSERTE(foundEntry->md == md);
+ _ASSERTE(foundEntry->md == md);
+ if (foundEntry->pos == 0)
+ {
+ // We might not have profile data and instead only have CompileStatus and flags
+ assert(foundEntry->size == 0);
+ return E_FAIL;
+ }
+
+ //
//
// We found the md. Let's retrieve the profile data.
//
- _ASSERTE(foundEntry->pos > 0); // The target position cannot be 0.
_ASSERTE(foundEntry->size >= sizeof(CORBBTPROF_METHOD_HEADER)); // The size must at least this
ProfileReader profileReader(DataSection_MethodBlockCounts->pData, DataSection_MethodBlockCounts->dataSize);