summaryrefslogtreecommitdiff
path: root/src/vm/excep.cpp
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-10-01 10:58:00 +0200
committerJan Vorlicek <janvorli@microsoft.com>2015-10-01 10:58:00 +0200
commitc31150a9284e07b0267b7cd901281862da63788d (patch)
tree864e6a2f8e95daa4235802dda8c111b2cdb5ce1c /src/vm/excep.cpp
parent411a09f7e21e7f9070d941bd420be8b239880101 (diff)
parent5ccd752bfaa38ff67e53e4c2046dd77fbbde6ede (diff)
downloadcoreclr-c31150a9284e07b0267b7cd901281862da63788d.tar.gz
coreclr-c31150a9284e07b0267b7cd901281862da63788d.tar.bz2
coreclr-c31150a9284e07b0267b7cd901281862da63788d.zip
Merge pull request #1654 from janvorli/fix-isipinepilog-assert
Fix assert in IsIPInEpilog
Diffstat (limited to 'src/vm/excep.cpp')
-rw-r--r--src/vm/excep.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/vm/excep.cpp b/src/vm/excep.cpp
index a8a8b167dc..4420ea2f3a 100644
--- a/src/vm/excep.cpp
+++ b/src/vm/excep.cpp
@@ -8242,28 +8242,6 @@ bool IsIPInEpilog(PTR_CONTEXT pContextToCheck, EECodeInfo *pCodeInfo, BOOL *pSaf
imageBase = pCodeInfo->GetModuleBase();
pUnwindInfo = (PUNWIND_INFO)(imageBase+ funcEntry->UnwindData);
-#if defined(_DEBUG)
- // In debug builds, assert our invariant that jitted code always have the managed personality routine
- // specified in the unwindInfo. For this, get an IP that is inside the method body. For this case,
- // we calculate the first address comprising the method body.
- PCODE ipInMethodBody = pCodeInfo->GetStartAddress()+pUnwindInfo->SizeOfProlog;
-
- ZeroMemory(&tempContext, sizeof(CONTEXT));
- CopyOSContext(&tempContext, pContextToCheck);
-
- // TODO: Explain the context mismatch issue here and why the unwind is still okay.
- personalityRoutine = RtlVirtualUnwind(UNW_FLAG_EHANDLER, // HandlerType
- imageBase,
- ipInMethodBody,
- funcEntry,
- &tempContext,
- &HandlerData,
- &establisherFrame,
- NULL);
-
- _ASSERTE(personalityRoutine != NULL);
-#endif // _DEBUG
-
ZeroMemory(&tempContext, sizeof(CONTEXT));
CopyOSContext(&tempContext, pContextToCheck);
KNONVOLATILE_CONTEXT_POINTERS ctxPtrs;