DescriptionOilpan: Improve address space randomization for the Oilpan heap.
Allocate oilpan heap pages in chunks of 10 pages at a random address.
Allocating all individual pages at random addresses blows out the TLB
and leads to poor performance so we group the allocations slightly.
Using a random aligned address for our allocations has the additional
advantage that we usually do not have to unmap surrounding unaligned
bits on all page allocations which turns out to be surprisingly
expensive on Linux.
The address space randomization code has been extracted from
PartitionAlloc. No need to reinvent the wheel. :-)
R=cevans@chromium.org, erik.corry@gmail.com, oilpan-reviews@chromium.org, tsepez@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177085
Patch Set 1 #
Total comments: 1
Patch Set 2 : Move code to cpp file. #
Total comments: 22
Patch Set 3 : Address review comments. #Patch Set 4 : fix typo #
Total comments: 3
Messages
Total messages: 22 (0 generated)
|