From 6bd621aa31aa94ed42a2a35256d219630bf0b687 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 16 May 2014 17:28:58 -0700 Subject: 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 --- runtime/mem_map.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/mem_map.cc') diff --git a/runtime/mem_map.cc b/runtime/mem_map.cc index 5225919b0c..ffafc85c43 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 -- cgit v1.2.3-59-g8ed1b