diff options
author | Vladimir Marko <vmarko@google.com> | 2018-08-16 16:12:49 +0100 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2018-08-21 13:51:00 +0100 |
commit | c34bebf39410f5571d3d5813157b61f274d435c3 (patch) | |
tree | 73909d3b34a2908e9de44cc60c4a2ff74eabefd7 /compiler/optimizing/codegen_test_utils.h | |
parent | f345404c725330914b8313d2c1af17226c5b92ca (diff) |
Remove unnecessary indirection from MemMap.
Avoid plain MemMap pointers being passed around by changing
the MemMap to moveable and return MemMap objects by value.
Previously we could have a valid zero-size MemMap but this
is now forbidden.
MemMap::RemapAtEnd() is changed to avoid the explicit call
to munmap(); mmap() with MAP_FIXED automatically removes
old mappings for overlapping regions.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: Pixel 2 XL boots.
Test: m test-art-target-gtest
Test: testrunner.py --target --optimizing
Change-Id: I12bd453c26a396edc20eb141bfd4dad20923f170
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions