summaryrefslogtreecommitdiff
path: root/absl/debugging/stacktrace_test.cc
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-06-15 12:18:37 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-06-15 12:20:04 -0700
commitbf69aa3ca20aa04350fbd04efd8ac7ad4bb22e79 (patch)
tree8b3e67bbf7cb0646c4d59b2b22f66512dc69ac05 /absl/debugging/stacktrace_test.cc
parent04e0dcae14f6bde8f4feec4516b12d4f787a517f (diff)
The current aarch64 large-stack frame error handling is unsophisticated,
which makes it give up in certain situations where the x86 handler works fine This change adopts x86's more sophisticated stack-bounds-checking method for aarch64, and enables the HugeStack test to pass on aarch64. PiperOrigin-RevId: 540655431 Change-Id: If7d816330327722bbe5c135abfa77fda5e7e452b
Diffstat (limited to 'absl/debugging/stacktrace_test.cc')
-rw-r--r--absl/debugging/stacktrace_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/debugging/stacktrace_test.cc b/absl/debugging/stacktrace_test.cc
index 78ce7ad0..31f7723c 100644
--- a/absl/debugging/stacktrace_test.cc
+++ b/absl/debugging/stacktrace_test.cc
@@ -20,8 +20,8 @@
namespace {
-// This test is currently only known to pass on linux/x86_64.
-#if defined(__linux__) && defined(__x86_64__)
+// This test is currently only known to pass on Linux x86_64/aarch64.
+#if defined(__linux__) && (defined(__x86_64__) || defined(__aarch64__))
ABSL_ATTRIBUTE_NOINLINE void Unwind(void* p) {
ABSL_ATTRIBUTE_UNUSED static void* volatile sink = p;
constexpr int kSize = 16;