Skip to content

Commit 09d02ee

Browse files
committed
Revert the aarch64 hack
1 parent 0d1e1c1 commit 09d02ee

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/memray/_memray/ghost_stack/src/ghost_stack.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -526,16 +526,6 @@ class GhostStackImpl
526526
ip = ptrauth_strip(ip);
527527
#endif
528528

529-
// On ARM64 Linux, unw_backtrace returns addresses adjusted by -1
530-
// (to point inside the call instruction for symbolization),
531-
// but unw_get_reg(UNW_REG_IP) returns the raw return address.
532-
// Adjust to match unw_backtrace's behavior for consistency.
533-
#if defined(GS_ARCH_AARCH64) && defined(__linux__)
534-
if (ip > 0) {
535-
ip = ip - 1;
536-
}
537-
#endif
538-
539529
// Get location where return address is stored
540530
uintptr_t* ret_loc = nullptr;
541531
#ifdef __linux__

0 commit comments

Comments
 (0)