From 6f382013399fc8ba8b2717e4d24d91978d2bc0f7 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 30 Jul 2019 09:47:35 -0700 Subject: 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 --- runtime/gc/heap_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/gc/heap_test.cc') diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc index 5f4621e6f1..817c87681d 100644 --- a/runtime/gc/heap_test.cc +++ b/runtime/gc/heap_test.cc @@ -87,11 +87,11 @@ TEST_F(HeapTest, GarbageCollectClassLinkerInit) { TEST_F(HeapTest, HeapBitmapCapacityTest) { uint8_t* heap_begin = reinterpret_cast(0x1000); const size_t heap_capacity = kObjectAlignment * (sizeof(intptr_t) * 8 + 1); - std::unique_ptr bitmap( + accounting::ContinuousSpaceBitmap bitmap( accounting::ContinuousSpaceBitmap::Create("test bitmap", heap_begin, heap_capacity)); mirror::Object* fake_end_of_heap_object = reinterpret_cast(&heap_begin[heap_capacity - kObjectAlignment]); - bitmap->Set(fake_end_of_heap_object); + bitmap.Set(fake_end_of_heap_object); } TEST_F(HeapTest, DumpGCPerformanceOnShutdown) { -- cgit v1.2.3-59-g8ed1b