Android 7.1.2 Release 29 (NJH47F)
-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAll7iL8ACgkQ6K0/gZqxDnjLagCgj9/Yw8qMcTC16Uu24pJg+8zF
fLoAoIGNn23mN4A2bsX9HqKNM/BAg73F
=Cfd2
-----END PGP SIGNATURE-----
Move large structure off the stack.

The struct unw_addr_space is very large (at least 13624 bytes on arm),
but is on the stack in the function map_create_list.

Allocate this function when needed instead of putting it on the stack.

Bug: 33293182

Test: Built and ran backtrace_test on an angler. Stepped through the
Test: modified code and verified it is called and allocated properly.
Test: Ran valgrind on the backtrace_test.local_trace to verify that
Test: the memory is not leaked.
Change-Id: I298e72d6b87d2701111c4659c46246b308f275e9
(cherry picked from commit 50270d3ef2127372c0ae6aefd9be255ab901f573)
1 file changed