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