Index: src/incremental-marking.cc |
diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc |
index 2413b67803f090557280955d5196c590287f6007..5b58c9d7877bb8d211da7a4375fd0d1569b55c79 100644 |
--- a/src/incremental-marking.cc |
+++ b/src/incremental-marking.cc |
@@ -951,7 +951,7 @@ void IncrementalMarking::ResetStepCounters() { |
int64_t IncrementalMarking::SpaceLeftInOldSpace() { |
- return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSize(); |
+ return heap_->MaxOldGenerationSize() - heap_->PromotedSpaceSizeOfObjects(); |
} |
} } // namespace v8::internal |