Skip to content

Commit 42c2838

Browse files
committed
comment
1 parent c31f163 commit 42c2838

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/coreclr/nativeaot/Runtime/EHHelpers.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,8 @@ int32_t __stdcall RhpVectoredExceptionHandler(PEXCEPTION_POINTERS pExPtrs)
577577
// Undo the "pop", but fix the return to point to the original caller,
578578
// so that the ret could now succeed.
579579
interruptedContext->SetSp(interruptedContext->GetSp() - 8);
580+
// CONSIDER: According to docs, the OS should fix the SP value to match one from SSP,
581+
// so this could be an assert instead.
580582
*(size_t *)interruptedContext->GetSp() = interruptedContext->GetIp();
581583
interruptedContext->SetIp(origIp);
582584
}

0 commit comments

Comments
 (0)