Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 507ad84090860b0c9eb6993b4896619fcefad389..b470c35be42b752ff232d6eea48fe28a4f411453 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -3838,7 +3838,7 @@ void MarkCompactCollector::SweepSpace(PagedSpace* space, SweeperType sweeper) { |
bool lazy_sweeping_active = false; |
bool unused_page_present = false; |
- intptr_t old_space_size = heap()->PromotedSpaceSize(); |
+ intptr_t old_space_size = heap()->PromotedSpaceSizeOfObjects(); |
intptr_t space_left = |
Min(heap()->OldGenPromotionLimit(old_space_size), |
heap()->OldGenAllocationLimit(old_space_size)) - old_space_size; |