Commit 8b9924f6 authored by hpayer's avatar hpayer Committed by Commit bot

Fix wrong DCHECK in Heap::FindAllocationMemento where bump pointer overflow...

Fix wrong DCHECK in Heap::FindAllocationMemento where bump pointer overflow points to the currently used new space page.

BUG=chromium:501693
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#29218}
parent 88a40c5f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment