diff options
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 |
commit | 1130659b0d948806e7ca974ead8ad2bcc1951d13 (patch) | |
tree | 9046a016fafc7f9bff4e34732aa8f89ed81ad46c /compiler/common_compiler_test.cc | |
parent | 1c1442a498fd3f9ddc5d2bb04baa7ccd2d3539c4 (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 'compiler/common_compiler_test.cc')
-rw-r--r-- | compiler/common_compiler_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc index 586891a3ff..fc8cd528fa 100644 --- a/compiler/common_compiler_test.cc +++ b/compiler/common_compiler_test.cc @@ -328,6 +328,8 @@ void CommonCompilerTest::ReserveImageSpace() { (size_t)120 * 1024 * 1024, // 120MB PROT_NONE, false /* no need for 4gb flag with fixed mmap */, + /*reuse=*/ false, + /*reservation=*/ nullptr, &error_msg); CHECK(image_reservation_.IsValid()) << error_msg; } |