mirror of
https://github.com/gperftools/gperftools
synced 2025-01-31 03:31:36 +00:00
generic_fp stacktrace: aarch64 frame pointer may be 8 byte aligned
This commit is contained in:
parent
7b9dc8e1fc
commit
38b19664d3
@ -177,8 +177,12 @@ int capture(void **result, int max_depth, int skip_count,
|
||||
// older gcc's (circa gcc 6 or so) did something that looks right,
|
||||
// but not recent ones).
|
||||
constexpr uintptr_t kAlignment = 4;
|
||||
#elif defined(__aarch64__)
|
||||
// aarch64 ABI does not specify the frame pointer location, so we can only
|
||||
// know it's 8 byte aligned (as the register size)
|
||||
constexpr uintptr_t kAlignment = 8;
|
||||
#else
|
||||
// This is simplistic yet. Here we're targeting x86, aarch64 and
|
||||
// This is simplistic yet. Here we're targeting x86 and
|
||||
// riscv. They all have 16 bytes stack alignment (even 32 bit
|
||||
// riscv). This can be made more elaborate as we consider more
|
||||
// architectures.
|
||||
|
Loading…
Reference in New Issue
Block a user