summaryrefslogtreecommitdiffstats
path: root/runtime/mem_map.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-05-16 17:28:58 -0700
committerAndreas Gampe <agampe@google.com>2014-05-16 17:43:23 -0700
commit6bd621aa31aa94ed42a2a35256d219630bf0b687 (patch)
tree1c0991988a0891817c60969ec197bf55fa75ce83 /runtime/mem_map.cc
parentde1129a26e0474ea8bb9112938ebb867163969fd (diff)
downloadart-6bd621aa31aa94ed42a2a35256d219630bf0b687.zip
art-6bd621aa31aa94ed42a2a35256d219630bf0b687.tar.gz
art-6bd621aa31aa94ed42a2a35256d219630bf0b687.tar.bz2
ART: Move start of linear mmap_scan out of reserved space
The first 64KB are protected by SELinux, and we will never be able to acquire them. Bug: 15024270 Change-Id: I186a0d5262d396a089d4028a8527a9c56f96dc49
Diffstat (limited to 'runtime/mem_map.cc')
-rw-r--r--runtime/mem_map.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc
index 5225919..ffafc85 100644
--- a/runtime/mem_map.cc
+++ b/runtime/mem_map.cc
@@ -47,8 +47,8 @@ static std::ostream& operator<<(
}
#if defined(__LP64__) && !defined(__x86_64__)
-// Where to start with low memory allocation.
-static constexpr uintptr_t LOW_MEM_START = kPageSize * 2;
+// Where to start with low memory allocation. The first 64KB is protected by SELinux.
+static constexpr uintptr_t LOW_MEM_START = 64 * KB;
uintptr_t MemMap::next_mem_pos_ = LOW_MEM_START; // first page to check for low-mem extent
#endif