Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 8b4baf3de48622429faa435de51166e4cecc95fe..b6bd4e329e4a609822cca4a25f8a30ffdc45a23a 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2744,7 +2744,8 @@ void DescriptorArray::SwapSortedKeys(int first, int second) { |
DescriptorArray::WhitenessWitness::WhitenessWitness(FixedArray* array) |
: marking_(array->GetHeap()->incremental_marking()) { |
marking_->EnterNoMarkingScope(); |
- ASSERT(Marking::Color(array) == Marking::WHITE_OBJECT); |
+ ASSERT(!marking_->IsMarking() || |
+ Marking::Color(array) == Marking::WHITE_OBJECT); |
} |