DescriptionReland of Add function to trace stack using frame pointers.
Original CL (1879073002) was reverted because it triggered several
use-of-uninitialized-value errors on Linux ChromeOS MSan bot. See
crbug.com/602701#c6 for details. Those errors are expected because
reading values from the stack outside of the function's frame is
essential to the process of unwinding.
This CL adds change to disable the unit test if MEMORY_SANITIZER is
defined. Additionally, this CL fixes unwinding on ARM by moving sp
adjustment several lines up.
Original issue's description:
> For memory-infra we need fast stack traces to implement allocation
> tracing (see https://goo.gl/DFoqfi). StackTrace class uses unwinding
> and is too slow. This change adds a function that uses frame pointers
> to walk the stack.
>
> The function supports x86, x64 and arm (but not thumb) architectures
> on POSIX platforms.
BUG=602701
Committed: https://crrev.com/79080da0203790b2e12ab36ab50f8a374aea8455
Cr-Commit-Position: refs/heads/master@{#389320}
Patch Set 1 : Original CL #Patch Set 2 : Disable the unit test on MSan #Patch Set 3 : Fix ARM unwinding on GCC #
Dependent Patchsets: Messages
Total messages: 10 (5 generated)
|