base: Improve DiscardableSharedMemory support for ashmem.
commit876f863615f341236004e0c3cd47125311e4c2d4
authorreveman <reveman@chromium.org>
Sat, 24 Jan 2015 02:03:31 +0000 (23 18:03 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 24 Jan 2015 02:05:07 +0000 (24 02:05 +0000)
treea3c1cd22fb2d7e7c1b68b1e5863b3209f0e9a4dd
parentc9ff196ec6e6b4da30c06631b30a2cea961dbfbb
base: Improve DiscardableSharedMemory support for ashmem.

Locking can now succeed even when the range of pages has been
purged. This avoids unnecessary IPC as it reduces the need to
create new DiscardableSharedMemory instances when backed by ashmem.

BUG=429416
TEST=base_unittests --gtest_filter=DiscardableSharedMemoryTest*

Review URL: https://codereview.chromium.org/871043003

Cr-Commit-Position: refs/heads/master@{#312992}
base/memory/discardable_memory_shmem_allocator.cc
base/memory/discardable_shared_memory.cc
base/memory/discardable_shared_memory.h
base/memory/discardable_shared_memory_unittest.cc
content/child/child_discardable_shared_memory_manager.cc
content/common/host_discardable_shared_memory_manager_unittest.cc