Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index 1fc5a6a7fb66a28ccd70237d3074df67d1c7c42b..ae72a062adf4a8434970070b6f2e27dcc775ee99 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -192,7 +192,7 @@ bool Heap::HeapIsFullEnoughToStartIncrementalMarking(intptr_t limit) { |
intptr_t adjusted_allocation_limit = limit - new_space_->Capacity(); |
- if (PromotedTotalSize() >= adjusted_allocation_limit) return true; |
+ if (PromotedSpaceSizeOfObjects() >= adjusted_allocation_limit) return true; |
if (HighMemoryPressure()) return true; |