diff options
author | Andreas Gampe <agampe@google.com> | 2014-05-16 17:28:58 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2014-05-16 17:43:23 -0700 |
commit | 6bd621aa31aa94ed42a2a35256d219630bf0b687 (patch) | |
tree | 1c0991988a0891817c60969ec197bf55fa75ce83 /runtime/mem_map.cc | |
parent | de1129a26e0474ea8bb9112938ebb867163969fd (diff) | |
download | art-6bd621aa31aa94ed42a2a35256d219630bf0b687.tar.gz art-6bd621aa31aa94ed42a2a35256d219630bf0b687.tar.bz2 art-6bd621aa31aa94ed42a2a35256d219630bf0b687.zip |
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.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 |