summaryrefslogtreecommitdiff
path: root/absl/debugging/internal
diff options
context:
space:
mode:
authorGravatar Saleem Abdulrasool <abdulras@google.com>2022-07-06 13:39:37 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-07-06 13:40:46 -0700
commit9edef2349c8c4ace11b4a1b97365cf9c9a293dc8 (patch)
tree734af3099688826a4b24c34e2bde3f6418ad2d52 /absl/debugging/internal
parent4bbdb026899fea9f882a95cbd7d6a4adaf49b2dd (diff)
This seems to have caused some regressions by causing a flaky failure in some cases. Revert the change to enable investigation. PiperOrigin-RevId: 459331687 Change-Id: Iaa4e4bfcb3013a75a2cd72768d980ac5e450f70c
Diffstat (limited to 'absl/debugging/internal')
-rw-r--r--absl/debugging/internal/stacktrace_riscv-inl.inc15
1 files changed, 0 insertions, 15 deletions
diff --git a/absl/debugging/internal/stacktrace_riscv-inl.inc b/absl/debugging/internal/stacktrace_riscv-inl.inc
index ba0775b2..7123b71b 100644
--- a/absl/debugging/internal/stacktrace_riscv-inl.inc
+++ b/absl/debugging/internal/stacktrace_riscv-inl.inc
@@ -159,21 +159,6 @@ static void ** NextStackFrame(void **old_frame_pointer, const void *uc) {
const uintptr_t max_size = STRICT_UNWINDING ? 100000 : 1000000;
const uintptr_t frame_size =
ComputeStackFrameSize(old_frame_pointer, new_frame_pointer);
-
- // If we have a alternate signal stack, the stack pointer may not be
- // contiguous. In such a case, we can simply skip the check and assume that
- // the non-contiguity is permissible.
- if (frame_size == kUnknownFrameSize) {
- assert(old_frame_pointer >= new_frame_pointer);
-
- stack_t ss{};
- if (sigaltstack(nullptr, &ss) == 0) {
- if (ss.ss_flags & SS_DISABLE)
- return nullptr;
- return new_frame_pointer;
- }
- }
-
if (frame_size == kUnknownFrameSize || frame_size > max_size)
return nullptr;
}