Skip to content

Commit

Permalink
Fix unwinding for NativeAOT on Unix x64 (#74690)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Lapounov <antonl@microsoft.com>
  • Loading branch information
github-actions[bot] and AntonLapounov authored Aug 28, 2022
1 parent edb7234 commit 58c5937
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/nativeaot/Runtime/unix/UnixNativeCodeManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ uintptr_t UnixNativeCodeManager::GetConservativeUpperBoundForOutgoingArgs(Method

UnixNativeMethodInfo * pNativeMethodInfo = (UnixNativeMethodInfo *)pMethodInfo;

PTR_UInt8 p = pNativeMethodInfo->pMainLSDA;
PTR_UInt8 p = pNativeMethodInfo->pLSDA;

uint8_t unwindBlockFlags = *p++;

Expand Down Expand Up @@ -283,7 +283,7 @@ bool UnixNativeCodeManager::UnwindStackFrame(MethodInfo * pMethodInfo,
{
UnixNativeMethodInfo * pNativeMethodInfo = (UnixNativeMethodInfo *)pMethodInfo;

PTR_UInt8 p = pNativeMethodInfo->pMainLSDA;
PTR_UInt8 p = pNativeMethodInfo->pLSDA;

uint8_t unwindBlockFlags = *p++;

Expand Down Expand Up @@ -868,7 +868,7 @@ PTR_VOID UnixNativeCodeManager::GetAssociatedData(PTR_VOID ControlPC)
if (!FindMethodInfo(ControlPC, (MethodInfo*)&methodInfo))
return NULL;

PTR_UInt8 p = methodInfo.pMainLSDA;
PTR_UInt8 p = methodInfo.pLSDA;

uint8_t unwindBlockFlags = *p++;
if ((unwindBlockFlags & UBF_FUNC_HAS_ASSOCIATED_DATA) == 0)
Expand Down

0 comments on commit 58c5937

Please sign in to comment.