summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Warren <matt.warren@live.co.uk>2019-01-19 19:59:40 (GMT)
committerJan Kotas <jkotas@microsoft.com>2019-01-19 19:59:40 (GMT)
commitdce086f9bbd047296942f615f20a4f9a1e3a8d26 (patch)
tree98279ea386f0b9d14e54595f1f87e931ff019b55
parentb2c6dd4eb427caf7cb852998076b0b1543447a28 (diff)
downloadcoreclr-dce086f9bbd047296942f615f20a4f9a1e3a8d26.zip
coreclr-dce086f9bbd047296942f615f20a4f9a1e3a8d26.tar.gz
coreclr-dce086f9bbd047296942f615f20a4f9a1e3a8d26.tar.bz2
Removed unused 'Stack Walking' code (#22039)
As fair as I can tell `ECWGCFCrawlCallBack(..)` is not wired-up anywhere (I've successfully compiled CoreCLR locally with this change under `x86` and `x64`)
-rw-r--r--src/vm/reflectioninvocation.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/vm/reflectioninvocation.cpp b/src/vm/reflectioninvocation.cpp
index 7667ca8..7ff6ea6 100644
--- a/src/vm/reflectioninvocation.cpp
+++ b/src/vm/reflectioninvocation.cpp
@@ -2082,49 +2082,6 @@ FCIMPL0(FC_BOOL_RET, ReflectionInvocation::TryEnsureSufficientExecutionStack)
}
FCIMPLEND
-struct ECWGCFContext
-{
- BOOL fHandled;
- Frame *pStartFrame;
-};
-
-// Crawl the stack looking for Thread Abort related information (whether we're executing inside a CER or an error handling clauses
-// of some sort).
-StackWalkAction ECWGCFCrawlCallBack(CrawlFrame* pCf, void* data)
-{
- CONTRACTL {
- NOTHROW;
- GC_NOTRIGGER;
- }
- CONTRACTL_END;
-
- ECWGCFContext *pData = (ECWGCFContext *)data;
-
- Frame *pFrame = pCf->GetFrame();
- if (pFrame && pFrame->GetFunction() != NULL && pFrame != pData->pStartFrame)
- {
- // We walk through a transition frame, but it is not our start frame.
- // This means ExecuteCodeWithGuarantee is not at the bottom of stack.
- pData->fHandled = TRUE;
- return SWA_ABORT;
- }
-
- MethodDesc *pMD = pCf->GetFunction();
-
- // Non-method frames don't interest us.
- if (pMD == NULL)
- return SWA_CONTINUE;
-
- if (!pMD->GetModule()->IsSystem())
- {
- // We walk through some user code. This means that ExecuteCodeWithGuarantee is not at the bottom of stack.
- pData->fHandled = TRUE;
- return SWA_ABORT;
- }
-
- return SWA_CONTINUE;
-}
-
struct ECWGC_Param
{
BOOL fExceptionThrownInTryCode;