Skip to content

Commit

Permalink
Attempt to fix Win7 x86 crash
Browse files Browse the repository at this point in the history
And a bit of cleanup
  • Loading branch information
janvorli committed Feb 2, 2024
1 parent 2cd44c2 commit 421922d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion src/coreclr/vm/excep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6563,7 +6563,6 @@ void HandleManagedFaultNew(EXCEPTION_RECORD* pExceptionRecord, CONTEXT* pContext
#if defined(FEATURE_EH_FUNCLETS)
*frame->GetGSCookiePtr() = GetProcessGSCookie();
#endif // FEATURE_EH_FUNCLETS
//pContext->ContextFlags |= CONTEXT_EXCEPTION_ACTIVE;
frame->InitAndLink(pContext);

Thread *pThread = GetThread();
Expand Down Expand Up @@ -7447,7 +7446,9 @@ LONG WINAPI CLRVectoredExceptionHandlerShim(PEXCEPTION_POINTERS pExceptionInfo)
return EXCEPTION_CONTINUE_SEARCH;
}

#ifdef FEATURE_EH_FUNCLETS
pExceptionInfo->ContextRecord->ContextFlags |= CONTEXT_EXCEPTION_ACTIVE;
#endif // FEATURE_EH_FUNCLETS

// WARNING
//
Expand Down
12 changes: 0 additions & 12 deletions src/coreclr/vm/stackwalk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1407,12 +1407,6 @@ BOOL StackFrameIterator::ResetRegDisp(PREGDISPLAY pRegDisp,
}

m_crawl.pFrame->UpdateRegDisplay(m_crawl.pRD, m_flags & UNWIND_FLOATS);
// #ifdef FEATURE_EH_FUNCLETS
// if ((m_crawl.pRD->pCurrentContext->ContextFlags & CONTEXT_EXCEPTION_ACTIVE) == 0)
// {
// m_crawl.hasFaulted = false;
// }
// #endif // FEATURE_EH_FUNCLETS
_ASSERTE(curPc == GetControlPC(m_crawl.pRD));
}

Expand Down Expand Up @@ -2733,12 +2727,6 @@ StackWalkAction StackFrameIterator::NextRaw(void)
if (m_crawl.isFrameless)
{
m_crawl.pFrame->UpdateRegDisplay(m_crawl.pRD, m_flags & UNWIND_FLOATS);
// #ifdef FEATURE_EH_FUNCLETS
// if ((m_crawl.pRD->pCurrentContext->ContextFlags & CONTEXT_EXCEPTION_ACTIVE) == 0)
// {
// m_crawl.hasFaulted = false;
// }
// #endif // FEATURE_EH_FUNCLETS

#if defined(RECORD_RESUMABLE_FRAME_SP)
CONSISTENCY_CHECK(NULL == m_pvResumableFrameTargetSP);
Expand Down

0 comments on commit 421922d

Please sign in to comment.