diff options
-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; |