summaryrefslogtreecommitdiffstats
path: root/content/common/discardable_shared_memory_heap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/discardable_shared_memory_heap.cc')
-rw-r--r--content/common/discardable_shared_memory_heap.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/common/discardable_shared_memory_heap.cc b/content/common/discardable_shared_memory_heap.cc
index bf124f7..61f05d3 100644
--- a/content/common/discardable_shared_memory_heap.cc
+++ b/content/common/discardable_shared_memory_heap.cc
@@ -176,8 +176,8 @@ DiscardableSharedMemoryHeap::Split(Span* span, size_t blocks) {
scoped_ptr<Span> leftover(new Span(
span->shared_memory_, span->start_ + blocks, span->length_ - blocks));
- DCHECK_IMPLIES(leftover->length_ > 1,
- spans_.find(leftover->start_) == spans_.end());
+ DCHECK(leftover->length_ == 1 ||
+ spans_.find(leftover->start_) == spans_.end());
RegisterSpan(leftover.get());
spans_[span->start_ + blocks - 1] = span;
span->length_ = blocks;
@@ -281,7 +281,7 @@ DiscardableSharedMemoryHeap::Carve(Span* span, size_t blocks) {
scoped_ptr<Span> leftover(
new Span(serving->shared_memory_, serving->start_ + blocks, extra));
leftover->set_is_locked(false);
- DCHECK_IMPLIES(extra > 1, spans_.find(leftover->start_) == spans_.end());
+ DCHECK(extra == 1 || spans_.find(leftover->start_) == spans_.end());
RegisterSpan(leftover.get());
// No need to coalesce as the previous span of |leftover| was just split