summaryrefslogtreecommitdiff
path: root/runtime/gc/allocator/rosalloc.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-08-24 09:02:28 +0100
committer Vladimir Marko <vmarko@google.com> 2018-08-24 09:40:56 +0100
commitf6985bd84b27b25e2c2ae1b865a4f28a0ccd578b (patch)
tree5ec94a773e2c7e19842b1f2de02baf4343aff6c9 /runtime/gc/allocator/rosalloc.cc
parent19759b28bc9dad1581c207d76227eb74fc8eebcb (diff)
Add an overload for MemMap::MapAnonymous().
Add an overload that does not take `reuse` or `use_ashmem` parameters but uses default values (`reuse = false` and `use_ashmem = true`) to simplify callers. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Iaa44f770dee7e043c3a1d6867dfb0416dec83b25
Diffstat (limited to 'runtime/gc/allocator/rosalloc.cc')
-rw-r--r--runtime/gc/allocator/rosalloc.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/runtime/gc/allocator/rosalloc.cc b/runtime/gc/allocator/rosalloc.cc
index 1639a82718..0dbafde2a5 100644
--- a/runtime/gc/allocator/rosalloc.cc
+++ b/runtime/gc/allocator/rosalloc.cc
@@ -96,7 +96,6 @@ RosAlloc::RosAlloc(void* base, size_t capacity, size_t max_capacity,
RoundUp(max_num_of_pages, kPageSize),
PROT_READ | PROT_WRITE,
/* low_4gb */ false,
- /* reuse */ false,
&error_msg);
CHECK(page_map_mem_map_.IsValid()) << "Couldn't allocate the page map : " << error_msg;
page_map_ = page_map_mem_map_.Begin();