Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index d76dd42982470b5f4ad0b7d7449b6dca97039fa8..427185a5c85fcae2a65df85b3b3db654150cb6de 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -1437,12 +1437,8 @@ |
if (o->IsHeapObject()) { |
if (Marking::IsWhite(ObjectMarking::MarkBitFrom(HeapObject::cast(o)))) { |
if (finalize_external_strings) { |
- if (o->IsExternalString()) { |
- heap_->FinalizeExternalString(String::cast(*p)); |
- } else { |
- // The original external string may have been internalized. |
- DCHECK(o->IsThinString()); |
- } |
+ DCHECK(o->IsExternalString()); |
+ heap_->FinalizeExternalString(String::cast(*p)); |
} else { |
pointers_removed_++; |
} |