Chromium Code Reviews| 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..440a06a9aeaffbb6e8c4da901ea2b2db685a4ba7 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 |
|
Søren Gjesse
2012/08/10 07:28:28
End comment with .
jackpal
2012/08/13 22:59:42
Done.
|
| void* address = mmap(NULL, size, PROT_NONE, |
| MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, |
| -1, 0); |