Commit 5ee0f009 authored by Hannes Payer's avatar Hannes Payer Committed by Commit Bot

[heap] Fix space DCHECK in Scavenger::ScavengeObject to allow young generation LOs.

Bug: chromium:852420
Change-Id: I920c4ac8e66a7f29c28fcc62a0b1ea62370bdf5d
Reviewed-on: https://chromium-review.googlesource.com/c/1350993Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Hannes Payer <hpayer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57842}
parent 883f5f35
......@@ -372,7 +372,11 @@ SlotCallbackResult Scavenger::ScavengeObject(HeapObjectSlot p,
DCHECK((*p)->IsStrong());
p.store(HeapObjectReference::Strong(dest));
}
DCHECK(Heap::InToSpace(dest) || !Heap::InNewSpace((dest)));
DCHECK_IMPLIES(Heap::InNewSpace(dest),
(Heap::InToSpace(dest) ||
MemoryChunk::FromHeapObject(dest)->owner()->identity() ==
NEW_LO_SPACE));
return Heap::InToSpace(dest) ? KEEP_SLOT : REMOVE_SLOT;
}
......
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