Fix wrong DCHECK in Heap::FindAllocationMemento where bump pointer overflow points...
authorhpayer <hpayer@chromium.org>
Tue, 23 Jun 2015 09:07:14 +0000 (02:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 09:07:29 +0000 (09:07 +0000)
BUG=chromium:501693
LOG=n

Review URL: https://codereview.chromium.org/1200833003

Cr-Commit-Position: refs/heads/master@{#29218}

src/heap/heap-inl.h

index b170e04..fdb1d73 100644 (file)
@@ -452,7 +452,7 @@ AllocationMemento* Heap::FindAllocationMemento(HeapObject* object) {
   Address top = NewSpaceTop();
   DCHECK(memento_address == top ||
          memento_address + HeapObject::kHeaderSize <= top ||
-         !NewSpacePage::OnSamePage(memento_address, top));
+         !NewSpacePage::OnSamePage(memento_address, top - 1));
   if (memento_address == top) return NULL;
 
   AllocationMemento* memento = AllocationMemento::cast(candidate);