summaryrefslogtreecommitdiffstats
path: root/runtime/gc/heap_test.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-04-14 19:02:50 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-04-14 19:02:50 +0000
commitd6b9b62748e120f7a02eb315e5cc8179312a5d1a (patch)
treed318a025cd4ca3a942e708b8717897a76390d960 /runtime/gc/heap_test.cc
parent107cbcc013df137cdad2a2eb238607b7673c5819 (diff)
parenta8e8f9c0a8e259a807d7b99a148d14104c24209d (diff)
downloadart-d6b9b62748e120f7a02eb315e5cc8179312a5d1a.zip
art-d6b9b62748e120f7a02eb315e5cc8179312a5d1a.tar.gz
art-d6b9b62748e120f7a02eb315e5cc8179312a5d1a.tar.bz2
Merge "Refactor space bitmap to support different alignments."
Diffstat (limited to 'runtime/gc/heap_test.cc')
-rw-r--r--runtime/gc/heap_test.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc
index 07e5088..a85ad4d 100644
--- a/runtime/gc/heap_test.cc
+++ b/runtime/gc/heap_test.cc
@@ -60,13 +60,11 @@ TEST_F(HeapTest, GarbageCollectClassLinkerInit) {
TEST_F(HeapTest, HeapBitmapCapacityTest) {
byte* heap_begin = reinterpret_cast<byte*>(0x1000);
- const size_t heap_capacity = accounting::SpaceBitmap::kAlignment * (sizeof(intptr_t) * 8 + 1);
- UniquePtr<accounting::SpaceBitmap> bitmap(accounting::SpaceBitmap::Create("test bitmap",
- heap_begin,
- heap_capacity));
+ const size_t heap_capacity = kObjectAlignment * (sizeof(intptr_t) * 8 + 1);
+ UniquePtr<accounting::ContinuousSpaceBitmap> bitmap(
+ accounting::ContinuousSpaceBitmap::Create("test bitmap", heap_begin, heap_capacity));
mirror::Object* fake_end_of_heap_object =
- reinterpret_cast<mirror::Object*>(&heap_begin[heap_capacity -
- accounting::SpaceBitmap::kAlignment]);
+ reinterpret_cast<mirror::Object*>(&heap_begin[heap_capacity - kObjectAlignment]);
bitmap->Set(fake_end_of_heap_object);
}