Commit 0b92f072 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[heap] Cleanup RemoveRange in VisitBlackObjects

Bug: 
Change-Id: I0e49aec183cfb5cd71f82862718cdbc62add0247
Reviewed-on: https://chromium-review.googlesource.com/543038Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46084}
parent 9c38b8ae
...@@ -4154,12 +4154,9 @@ bool LiveObjectVisitor::VisitBlackObjects(MemoryChunk* chunk, ...@@ -4154,12 +4154,9 @@ bool LiveObjectVisitor::VisitBlackObjects(MemoryChunk* chunk,
state.bitmap()->ClearRange( state.bitmap()->ClearRange(
chunk->AddressToMarkbitIndex(chunk->area_start()), chunk->AddressToMarkbitIndex(chunk->area_start()),
chunk->AddressToMarkbitIndex(object->address())); chunk->AddressToMarkbitIndex(object->address()));
SlotSet* slot_set = chunk->slot_set<OLD_TO_NEW>(); RememberedSet<OLD_TO_NEW>::RemoveRange(chunk, chunk->address(),
if (slot_set != nullptr) { object->address(),
slot_set->RemoveRange( SlotSet::PREFREE_EMPTY_BUCKETS);
0, static_cast<int>(object->address() - chunk->address()),
SlotSet::PREFREE_EMPTY_BUCKETS);
}
RememberedSet<OLD_TO_NEW>::RemoveRangeTyped(chunk, chunk->address(), RememberedSet<OLD_TO_NEW>::RemoveRangeTyped(chunk, chunk->address(),
object->address()); object->address());
RecomputeLiveBytes(chunk, state); RecomputeLiveBytes(chunk, state);
......
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