Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index eeaf39aedc6838ffb7d92c91c05d4cadf29dd861..1953fae8ee434329ddd64c2123658c7f26bc4d85 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -2707,7 +2707,8 @@ void PagedSpace::PrepareForMarkCompact() { |
intptr_t PagedSpace::SizeOfObjects() { |
const intptr_t size = Size() - (limit() - top()); |
- DCHECK_GE(size, 0); |
+ CHECK_GE(limit(), top()); |
+ CHECK_GE(size, 0); |
USE(size); |
return size; |
} |