[scudo][standalone] Allow Primary allocations to fail up multiple times.

Summary:
When enabling some malloc debug features on Android, multiple 32 bit
regions become exhausted, and the allocations fail. Allow allocations
to keep trying each bigger class in the Primary until it finds a fit.
In addition, some Android tests running on 32 bit fail sometimes due
to a running out of space in two regions, and then fail the allocation.

Reviewers: cryptoad

Reviewed By: cryptoad

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D82070

Bug: 150310094

Test: Ran scudo unit tests.
Test: Enabled malloc debug and record_allocs enabled on
Test: 32 bit process.

GitOrigin-RevId: e7ac984dc055085e0580e90f08841ae2c4ce7cf5
Change-Id: I7ad66719f84476d6f07914632b6c4f008447842b
2 files changed