Skip to content

Commit d6d857f

Browse files
filipnavarathaystg
authored andcommitted
Remove dead code (dotnet#113852)
1 parent e1c4821 commit d6d857f

File tree

2 files changed

+0
-43
lines changed

2 files changed

+0
-43
lines changed

src/coreclr/vm/amd64/cgenamd64.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,16 +349,6 @@ void HijackFrame::UpdateRegDisplay_Impl(const PREGDISPLAY pRD, bool updateFloats
349349
pRD->pCurrentContextPointers->Rax = (PULONG64)&m_Args->Rax;
350350

351351
SyncRegDisplayToCurrentContext(pRD);
352-
353-
/*
354-
// This only describes the top-most frame
355-
pRD->pContext = NULL;
356-
357-
358-
pRD->PCTAddr = dac_cast<TADDR>(m_Args) + offsetof(HijackArgs, Rip);
359-
//pRD->pPC = PTR_SLOT(pRD->PCTAddr);
360-
pRD->SP = (ULONG64)(pRD->PCTAddr + sizeof(TADDR));
361-
*/
362352
}
363353
#endif // FEATURE_HIJACK
364354

src/coreclr/vm/exceptionhandling.cpp

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6344,39 +6344,6 @@ UMEntryPrestubUnwindFrameChainHandler(
63446344
return disposition;
63456345
}
63466346

6347-
EXTERN_C EXCEPTION_DISPOSITION
6348-
UMThunkStubUnwindFrameChainHandler(
6349-
IN PEXCEPTION_RECORD pExceptionRecord,
6350-
IN PVOID pEstablisherFrame,
6351-
IN OUT PCONTEXT pContextRecord,
6352-
IN OUT PDISPATCHER_CONTEXT pDispatcherContext
6353-
)
6354-
{
6355-
6356-
#ifdef _DEBUG
6357-
// If the exception is escaping the last CLR personality routine on the stack,
6358-
// then state a flag on the thread to indicate so.
6359-
//
6360-
// We check for thread object since this function is the personality routine of the UMThunk
6361-
// and we can landup here even when thread creation (within the thunk) fails.
6362-
if (GetThreadNULLOk() != NULL)
6363-
{
6364-
SetReversePInvokeEscapingUnhandledExceptionStatus(IS_UNWINDING(pExceptionRecord->ExceptionFlags),
6365-
pEstablisherFrame
6366-
);
6367-
}
6368-
#endif // _DEBUG
6369-
6370-
EXCEPTION_DISPOSITION disposition = UMThunkUnwindFrameChainHandler(
6371-
pExceptionRecord,
6372-
pEstablisherFrame,
6373-
pContextRecord,
6374-
pDispatcherContext
6375-
);
6376-
6377-
return disposition;
6378-
}
6379-
63806347

63816348
// This is the personality routine setup for the assembly helper (CallDescrWorker) that calls into
63826349
// managed code.

0 commit comments

Comments
 (0)