Commit 3617612f authored by hpayer's avatar hpayer Committed by Commit bot

[heap] Do not clear second bit when iterating for grey objects on black pages.

BUG=chromium:561449
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#34760}
parent 27a9009a
......@@ -182,8 +182,11 @@ HeapObject* LiveObjectIterator<T>::Next() {
} else if (T == kGreyObjectsOnBlackPage) {
object = HeapObject::FromAddress(addr);
}
// Clear the second bit of the found object.
current_cell_ &= ~second_bit_index;
if (T != kGreyObjectsOnBlackPage) {
// Clear the second bit of the found object.
current_cell_ &= ~second_bit_index;
}
// We found a live object.
if (object != nullptr) break;
......
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