Index: src/heap/store-buffer.cc |
diff --git a/src/heap/store-buffer.cc b/src/heap/store-buffer.cc |
index c07ffbfe645963c8a8351c19a0827d6f3358fff3..a73e0fa57772f387a9c25be16136b87563e1df9c 100644 |
--- a/src/heap/store-buffer.cc |
+++ b/src/heap/store-buffer.cc |
@@ -382,7 +382,8 @@ void StoreBuffer::ClearInvalidStoreBufferEntries() { |
LargeObjectIterator it(heap_->lo_space()); |
for (HeapObject* object = it.Next(); object != NULL; object = it.Next()) { |
MemoryChunk* chunk = MemoryChunk::FromAddress(object->address()); |
- if (chunk->scan_on_scavenge() && !Marking::MarkBitFrom(object).Get()) { |
+ if (chunk->scan_on_scavenge() && |
+ Marking::IsWhite(Marking::MarkBitFrom(object))) { |
chunk->set_scan_on_scavenge(false); |
} |
} |