summaryrefslogtreecommitdiff
path: root/runtime/gc/space/dlmalloc_space.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2019-07-30 09:47:35 -0700
committer Mathieu Chartier <mathieuc@google.com> 2019-08-01 16:17:17 +0000
commit6f382013399fc8ba8b2717e4d24d91978d2bc0f7 (patch)
tree53b6bca63d5a1c34b2a60e5d8ef39f7cb22d4fe9 /runtime/gc/space/dlmalloc_space.cc
parent2b9c8c94fc92c6f2c7c1703efc1793d17ffde297 (diff)
Refactor space bitmap to be a value object
Remove the need for pointer indirections at many places, reduce the amount of code. Bug: 116052292 Test: test-art-host Change-Id: I4b1040d29f9ba99ea23c51f70a06af2ffbe496d4
Diffstat (limited to 'runtime/gc/space/dlmalloc_space.cc')
-rw-r--r--runtime/gc/space/dlmalloc_space.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/gc/space/dlmalloc_space.cc b/runtime/gc/space/dlmalloc_space.cc
index 3ef0f4ee78..3fa4c3c1d6 100644
--- a/runtime/gc/space/dlmalloc_space.cc
+++ b/runtime/gc/space/dlmalloc_space.cc
@@ -337,8 +337,8 @@ uint64_t DlMallocSpace::GetObjectsAllocated() {
void DlMallocSpace::Clear() {
size_t footprint_limit = GetFootprintLimit();
madvise(GetMemMap()->Begin(), GetMemMap()->Size(), MADV_DONTNEED);
- live_bitmap_->Clear();
- mark_bitmap_->Clear();
+ live_bitmap_.Clear();
+ mark_bitmap_.Clear();
SetEnd(Begin() + starting_size_);
mspace_ = CreateMspace(mem_map_.Begin(), starting_size_, initial_size_);
SetFootprintLimit(footprint_limit);