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}


CrOS-Libchrome-Original-Commit: 876f863615f341236004e0c3cd47125311e4c2d4
4 files changed
tree: 0c7c039755d75e6b101a0d98519a28edb9649370
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/