Only retain for 64 bit.

In 32 bit, the va space can be exhausted very easily. Change the
jemalloc defaults to only retain for 64 bit to avoid this exhaustion.
The performance of traces does get slightly worse, but most stay about
the same.

This should only affect devices that use malloc svelte, all other
devices are on scudo.

Bug: 142556796
Bug: 140079007

Test: Ran traces and verified va space is much lower.
Test: Compared benchmarks with and without retaining.
Test: Ran bionic unit tests.
Test: Ran jemalloc tests.
Test: Ran malloc stress tests.
Change-Id: Iaec8276582f880145a1ca5ebbaa65789f46d2bf2
Merged-In: Iaec8276582f880145a1ca5ebbaa65789f46d2bf2
(cherry picked from commit 42ee32379deb615c6554ac8325417f451e987b35)
1 file changed