DescriptionAlign ashmem region sizes to page size after ashmem creation failed.
When ashmem creation failed the new size (twice smaller) used to retry wasn't
page-aligned.
This also moves the page alignment function to the allocator's anonymous
namespace since it's now an implementation detail (since the allocator is
always used).
BUG=331832
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245201
Patch Set 1 #Patch Set 2 : Add unit test #
Total comments: 10
Patch Set 3 : Address William's comments #
Messages
Total messages: 7 (0 generated)
|