Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 966b8c7bb104419cb469d9b6759f8b16c309a909..9908f5c938bcc044adc6bae7f1600d9899a4c868 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -1102,7 +1102,7 @@ |
} |
bool size_of_old_space_multiplied_by_n_during_marking = |
- (heap_->PromotedSpaceSizeOfObjects() > |
+ (heap_->PromotedTotalSize() > |
(marking_speed_ + 1) * |
old_generation_space_used_at_start_of_incremental_); |
if (size_of_old_space_multiplied_by_n_during_marking) { |
@@ -1115,7 +1115,7 @@ |
} |
int64_t promoted_during_marking = |
- heap_->PromotedSpaceSizeOfObjects() - |
+ heap_->PromotedTotalSize() - |
old_generation_space_used_at_start_of_incremental_; |
intptr_t delay = marking_speed_ * MB; |
intptr_t scavenge_slack = heap_->MaxSemiSpaceSize(); |
@@ -1290,7 +1290,7 @@ |
old_generation_space_available_at_start_of_incremental_ = |
SpaceLeftInOldSpace(); |
old_generation_space_used_at_start_of_incremental_ = |
- heap_->PromotedSpaceSizeOfObjects(); |
+ heap_->PromotedTotalSize(); |
bytes_rescanned_ = 0; |
marking_speed_ = kInitialMarkingSpeed; |
bytes_scanned_ = 0; |