Just clear semi-space mark bits once before Scavenge

Both PrepareForScavenge and ResetAllocationInfo clear semi-space mark bits before Scavenge. Doing this once is good enough.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#28778}
This commit is contained in:
sejunho 2015-06-03 00:09:21 -07:00 committed by Commit bot
parent b104a67ef0
commit 0962f980a2
3 changed files with 0 additions and 14 deletions

View File

@ -1595,8 +1595,6 @@ void Heap::Scavenge() {
SelectScavengingVisitorsTable();
incremental_marking()->PrepareForScavenge();
// Flip the semispaces. After flipping, to space is empty, from space has
// live objects.
new_space_.Flip();

View File

@ -578,16 +578,6 @@ void IncrementalMarking::MarkObjectGroups() {
}
void IncrementalMarking::PrepareForScavenge() {
if (!IsMarking()) return;
NewSpacePageIterator it(heap_->new_space()->FromSpaceStart(),
heap_->new_space()->FromSpaceEnd());
while (it.has_next()) {
Bitmap::Clear(it.next());
}
}
void IncrementalMarking::UpdateMarkingDequeAfterScavenge() {
if (!IsMarking()) return;

View File

@ -73,8 +73,6 @@ class IncrementalMarking {
void MarkObjectGroups();
void PrepareForScavenge();
void UpdateMarkingDequeAfterScavenge();
void Hurry();