Descriptionbase/allocator/partition_alloc: make unittests lowmem friendly
Partition Alloc, which has been recently moved to base/, has tests
that rely on the ability to successfully make large (512 MB)
allocations. Turns out this is not possible on small devices like
ChromeCast, that seem to either have little overcommit margins or
a heavily fragmented address space.
This CL skips those tests on devices that have < 2 GiB of physical
memory. For the same reason, it lowers down the chunk size of the
RepeatedReturnNullDirect test. The rationale of the test is to check
that repeated failures are handled consistently when performing
directly mapped allocations. The chunk size is irrelevant as long as
it is big enough to hit the directly-mmap codepaths (current
threshold = 1 MB).
BUG=675255
Committed: https://crrev.com/3ac3dbf4347193119fa3f31db087fd87db2e99dd
Cr-Commit-Position: refs/heads/master@{#439484}
Patch Set 1 #Patch Set 2 : fix asan #Messages
Total messages: 18 (13 generated)
|