diff options
author | Andy Ayers <andya@microsoft.com> | 2021-04-23 03:46:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 03:46:31 +0300 |
commit | 57104c730b7c382a0356e1a683e83d99e3b03d14 (patch) | |
tree | 222bfdea0a8c2a51955e664740c1305d4e3e0bb2 /src/coreclr/ToolBox | |
parent | ed1897ef8a9ca55e3555e070ae58946c6343d7db (diff) |
Update jit for new likely class records (#51664)
Co-authored-by: David Wrighton <davidwr@microsoft.com>
Diffstat (limited to 'src/coreclr/ToolBox')
-rw-r--r-- | src/coreclr/ToolBox/superpmi/superpmi-shared/methodcontext.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/coreclr/ToolBox/superpmi/superpmi-shared/methodcontext.cpp b/src/coreclr/ToolBox/superpmi/superpmi-shared/methodcontext.cpp index f46cde27804..7a7989b4649 100644 --- a/src/coreclr/ToolBox/superpmi/superpmi-shared/methodcontext.cpp +++ b/src/coreclr/ToolBox/superpmi/superpmi-shared/methodcontext.cpp @@ -5486,15 +5486,7 @@ void MethodContext::recGetPgoInstrumentationResults(CORINFO_METHOD_HANDLE ftnHnd size_t maxOffset = 0; for (UINT32 i = 0; i < (*pCountSchemaItems); i++) { - // Note >= here; for type histograms the count and handle schema entries have the same offset, - // but the handle schema (which comes second) has a larger count. - // - // The sizeof should really be target pointer size, so cross-bitness replay may not work here. - // - if (pInSchema[i].Offset >= maxOffset) - { - maxOffset = pInSchema[i].Offset + pInSchema[i].Count * sizeof(uintptr_t); - } + maxOffset = max(maxOffset, pInSchema[i].Offset + pInSchema[i].Count * sizeof(uintptr_t)); agnosticSchema[i].Offset = (DWORDLONG)pInSchema[i].Offset; agnosticSchema[i].InstrumentationKind = (DWORD)pInSchema[i].InstrumentationKind; |