diff --git a/src/incremental-marking.cc b/src/incremental-marking.cc index f9575c3ba4..8e2eb62357 100644 --- a/src/incremental-marking.cc +++ b/src/incremental-marking.cc @@ -699,7 +699,10 @@ void IncrementalMarking::ProcessMarkingDeque(intptr_t bytes_to_process) { int size = obj->SizeFromMap(map); unscanned_bytes_of_large_object_ = 0; VisitObject(map, obj, size); - bytes_to_process -= (size - unscanned_bytes_of_large_object_); + int delta = (size - unscanned_bytes_of_large_object_); + // TODO(jochen): remove after http://crbug.com/381820 is resolved. + CHECK_LT(0, delta); + bytes_to_process -= delta; } }