| Index: runtime/vm/virtual_memory_android.cc
|
| diff --git a/runtime/vm/virtual_memory_linux.cc b/runtime/vm/virtual_memory_android.cc
|
| similarity index 97%
|
| copy from runtime/vm/virtual_memory_linux.cc
|
| copy to runtime/vm/virtual_memory_android.cc
|
| index 189c0fc4c9b6cd58d8ca3d2a27ffb73b50a027e7..e852de5ee1794a1f3ea6e6b4e7219d17701c8b3c 100644
|
| --- a/runtime/vm/virtual_memory_linux.cc
|
| +++ b/runtime/vm/virtual_memory_android.cc
|
| @@ -5,7 +5,6 @@
|
| #include "vm/virtual_memory.h"
|
|
|
| #include <sys/mman.h>
|
| -#include <sys/unistd.h>
|
| #include <unistd.h>
|
|
|
| #include "platform/assert.h"
|
| @@ -27,6 +26,7 @@ void VirtualMemory::InitOnce() {
|
|
|
|
|
| VirtualMemory* VirtualMemory::Reserve(intptr_t size) {
|
| + // TODO(4408): use ashmem instead of anonymous memory.
|
| void* address = mmap(NULL, size, PROT_NONE,
|
| MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
|
| -1, 0);
|
|
|