Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index c9b64aeffe07f7e8104bff08c0450002d7956520..cfed57541e6034c410371472761575cefb5e9613 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -1430,7 +1430,7 @@ TEST(TestSizeOfObjects) { |
HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
- CHECK(HEAP->old_pointer_space()->IsSweepingComplete()); |
+ CHECK(HEAP->old_pointer_space()->IsLazySweepingComplete()); |
int initial_size = static_cast<int>(HEAP->SizeOfObjects()); |
{ |
@@ -1454,7 +1454,7 @@ TEST(TestSizeOfObjects) { |
CHECK_EQ(initial_size, static_cast<int>(HEAP->SizeOfObjects())); |
// Advancing the sweeper step-wise should not change the heap size. |
- while (!HEAP->old_pointer_space()->IsSweepingComplete()) { |
+ while (!HEAP->old_pointer_space()->IsLazySweepingComplete()) { |
HEAP->old_pointer_space()->AdvanceSweeper(KB); |
CHECK_EQ(initial_size, static_cast<int>(HEAP->SizeOfObjects())); |
} |