Commit d141367d authored by Ulan Degenbaev's avatar Ulan Degenbaev Committed by Commit Bot

[heap] Remove incorrect assert in RegisterDeserializedObjectsForBlackAllocation.

BUG=chromium:694255

Change-Id: I8f134ee0871377fc52bba126297570c0453cdc8b
Reviewed-on: https://chromium-review.googlesource.com/566827Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46553}
parent 7a75da34
......@@ -4244,10 +4244,8 @@ void Heap::RegisterDeserializedObjectsForBlackAllocation(
Address addr = chunk.start;
while (addr < chunk.end) {
HeapObject* obj = HeapObject::FromAddress(addr);
// There might be grey objects due to black to grey transitions in
// incremental marking. E.g. see VisitNativeContextIncremental.
DCHECK(ObjectMarking::IsBlackOrGrey<IncrementalMarking::kAtomicity>(
obj, MarkingState::Internal(obj)));
// Objects can have any color because incremental marking can
// start in the middle of Heap::ReserveSpace().
if (ObjectMarking::IsBlack<IncrementalMarking::kAtomicity>(
obj, MarkingState::Internal(obj))) {
incremental_marking()->ProcessBlackAllocatedObject(obj);
......
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