Commit 5c3b6ca8 authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] Fix debug check in ShrinkToHighWaterMark

BUG=
R=ulan@chromium.org

Review-Url: https://codereview.chromium.org/2328503002
Cr-Commit-Position: refs/heads/master@{#39284}
parent 9a31162d
......@@ -795,6 +795,12 @@ size_t Page::ShrinkToHighWaterMark() {
}
if (filler2 == nullptr || filler2->address() == area_end()) return 0;
DCHECK(filler2->IsFiller());
// The deserializer might leave behind fillers. In this case we need to
// iterate even further.
while ((filler2->address() + filler2->Size()) != area_end()) {
filler2 = HeapObject::FromAddress(filler2->address() + filler2->Size());
DCHECK(filler2->IsFiller());
}
DCHECK_EQ(filler->address(), filler2->address());
#endif // DEBUG
......
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