Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: runtime/vm/virtual_memory_android.cc

Issue 10826233: Add _android files for building DartVM on Android (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporate reviewer's feedback (asiva, Soren Gjesse) Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/os_android.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/os_android.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698