Index: src/heap/incremental-marking.cc |
diff --git a/src/heap/incremental-marking.cc b/src/heap/incremental-marking.cc |
index 22051eaab2d5793681dbd6ba3df3ccfd1495dfec..fdf85a78d583f14aef57a32e3c8664eb7f8fa438 100644 |
--- a/src/heap/incremental-marking.cc |
+++ b/src/heap/incremental-marking.cc |
@@ -909,6 +909,8 @@ intptr_t IncrementalMarking::Step(intptr_t allocated_bytes, |
CompletionAction action, |
ForceMarkingAction marking, |
ForceCompletionAction completion) { |
+ DCHECK(allocated_bytes >= 0); |
+ |
if (heap_->gc_state() != Heap::NOT_IN_GC || !FLAG_incremental_marking || |
!FLAG_incremental_marking_steps || |
(state_ != SWEEPING && state_ != MARKING)) { |