diff options
author | Matt Warren <matt.warren@live.co.uk> | 2019-01-19 19:59:40 +0000 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-01-19 11:59:40 -0800 |
commit | dce086f9bbd047296942f615f20a4f9a1e3a8d26 (patch) | |
tree | 98279ea386f0b9d14e54595f1f87e931ff019b55 | |
parent | b2c6dd4eb427caf7cb852998076b0b1543447a28 (diff) | |
download | coreclr-dce086f9bbd047296942f615f20a4f9a1e3a8d26.tar.gz coreclr-dce086f9bbd047296942f615f20a4f9a1e3a8d26.tar.bz2 coreclr-dce086f9bbd047296942f615f20a4f9a1e3a8d26.zip |
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.cpp | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/vm/reflectioninvocation.cpp b/src/vm/reflectioninvocation.cpp index 7667ca8281..7ff6ea6cb9 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; |