summaryrefslogtreecommitdiff
path: root/runtime/gc/heap_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2018-10-26 14:22:59 +0100
committer Vladimir Marko <vmarko@google.com> 2018-10-30 10:20:32 +0000
commit1130659b0d948806e7ca974ead8ad2bcc1951d13 (patch)
tree9046a016fafc7f9bff4e34732aa8f89ed81ad46c /runtime/gc/heap_test.cc
parent1c1442a498fd3f9ddc5d2bb04baa7ccd2d3539c4 (diff)
Refactor MemMap::MapAnonymous().
Remove the address argument from the shortcut overload and introduce one more shortcut overload. This makes it easier to find all uses where we pass non-null address hint. Remove `requested_begin` parameter from some constructors where we were always passing null. Rewrite some tests to use the reservation API. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 118408378 Change-Id: Ibbbb96667e7cc11cf7fea119892463d8dbc9a8b5
Diffstat (limited to 'runtime/gc/heap_test.cc')
-rw-r--r--runtime/gc/heap_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc
index a133a1058c..606228cf36 100644
--- a/runtime/gc/heap_test.cc
+++ b/runtime/gc/heap_test.cc
@@ -38,6 +38,8 @@ class HeapTest : public CommonRuntimeTest {
16 * KB,
PROT_READ,
/*low_4gb=*/ true,
+ /*reuse=*/ false,
+ /*reservation=*/ nullptr,
&error_msg);
ASSERT_TRUE(reserved_.IsValid()) << error_msg;
CommonRuntimeTest::SetUp();