Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index eeaf39aedc6838ffb7d92c91c05d4cadf29dd861..6db43fb47d76414e838840acffa98bcbd293b47e 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -1516,7 +1516,7 @@ void NewSpace::UpdateInlineAllocationLimit(int size_in_bytes) { |
// Lower limit during incremental marking. |
Address high = to_space_.page_high(); |
Address new_top = allocation_info_.top() + size_in_bytes; |
- Address new_limit = new_top + GetNextInlineAllocationStepSize(); |
+ Address new_limit = new_top + GetNextInlineAllocationStepSize() - 1; |
allocation_info_.set_limit(Min(new_limit, high)); |
} |
DCHECK_SEMISPACE_ALLOCATION_INFO(allocation_info_, to_space_); |