summaryrefslogtreecommitdiff
path: root/runtime/gc/allocator/rosalloc.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-10-30 15:27:28 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-10-30 15:27:28 +0000
commit0ee508253edcdee41a80fcbf1511234ca176233d (patch)
tree4c1471226b650c30a21aabb525392c2cebfa337a /runtime/gc/allocator/rosalloc.cc
parenteead626e0567d11ed0402e9586a99ca4a1d023eb (diff)
parent1130659b0d948806e7ca974ead8ad2bcc1951d13 (diff)
Merge "Refactor MemMap::MapAnonymous()."
Diffstat (limited to 'runtime/gc/allocator/rosalloc.cc')
-rw-r--r--runtime/gc/allocator/rosalloc.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/gc/allocator/rosalloc.cc b/runtime/gc/allocator/rosalloc.cc
index 4e2cf2bf8c..b90a95d802 100644
--- a/runtime/gc/allocator/rosalloc.cc
+++ b/runtime/gc/allocator/rosalloc.cc
@@ -92,10 +92,9 @@ RosAlloc::RosAlloc(void* base, size_t capacity, size_t max_capacity,
size_t max_num_of_pages = max_capacity_ / kPageSize;
std::string error_msg;
page_map_mem_map_ = MemMap::MapAnonymous("rosalloc page map",
- /* addr= */ nullptr,
RoundUp(max_num_of_pages, kPageSize),
PROT_READ | PROT_WRITE,
- /* low_4gb= */ false,
+ /*low_4gb=*/ false,
&error_msg);
CHECK(page_map_mem_map_.IsValid()) << "Couldn't allocate the page map : " << error_msg;
page_map_ = page_map_mem_map_.Begin();