Skip to content

Commit 68cb956

Browse files
authored
Disable IL offset mapping validation (#117809)
1 parent 17365a6 commit 68cb956

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/coreclr/vm/debugdebugger.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,6 @@ size_t WalkILOffsetsCallback(ICorDebugInfo::OffsetMapping *pOffsetMapping, void
13141314
}
13151315
pWalkData->dwCurrentNativeOffset = pOffsetMapping->nativeOffset;
13161316
pWalkData->prevILOffsetFound = pWalkData->dwILOffsetFound;
1317-
pWalkData->dwCurrentNativeOffset = pOffsetMapping->nativeOffset;
13181317
pWalkData->dwILOffsetFound = pOffsetMapping->ilOffset;
13191318
}
13201319
else if (((int32_t)pOffsetMapping->ilOffset < (int32_t)pWalkData->dwILOffsetFound) && (pOffsetMapping->ilOffset != (DWORD)ICorDebugInfo::NO_MAPPING))

src/coreclr/vm/jitinterface.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13103,9 +13103,12 @@ static TADDR UnsafeJitFunctionWorker(
1310313103
if (g_pDebugInterface)
1310413104
{
1310513105
g_pDebugInterface->JITComplete(nativeCodeVersion, (TADDR)nativeEntry);
13106-
#ifdef DEBUG
13107-
ValidateILOffsets(ftn, NULL, 0, (uint8_t*)nativeEntry, sizeOfCode);
13108-
#endif // DEBUG
13106+
13107+
// Validation currently disabled, see https://github.com/dotnet/runtime/issues/117561
13108+
//
13109+
//#ifdef DEBUG
13110+
// ValidateILOffsets(ftn, NULL, 0, (uint8_t*)nativeEntry, sizeOfCode);
13111+
//#endif // DEBUG
1310913112
}
1311013113
#endif // DEBUGGING_SUPPORTED
1311113114
}

0 commit comments

Comments
 (0)