| Index: test/cctest/heap/test-page-promotion.cc
|
| diff --git a/test/cctest/heap/test-page-promotion.cc b/test/cctest/heap/test-page-promotion.cc
|
| index 3ebdf54650af5cefc0a3c7d36f9b3008e6ce7582..23dccd165cf6c690b6f1437b56d7c4d040977af3 100644
|
| --- a/test/cctest/heap/test-page-promotion.cc
|
| +++ b/test/cctest/heap/test-page-promotion.cc
|
| @@ -65,7 +65,7 @@ UNINITIALIZED_TEST(PagePromotion_NewToOld) {
|
| // Sanity check that the page meets the requirements for promotion.
|
| const int threshold_bytes =
|
| FLAG_page_promotion_threshold * Page::kAllocatableMemory / 100;
|
| - CHECK_GE(first_page->LiveBytes(), threshold_bytes);
|
| + CHECK_GE(MarkingState::Internal(first_page).live_bytes(), threshold_bytes);
|
|
|
| // Actual checks: The page is in new space first, but is moved to old space
|
| // during a full GC.
|
|
|