Index: src/heap-inl.h |
diff --git a/src/heap-inl.h b/src/heap-inl.h |
index fdf86ff2cc85c18809afb6d91f0112d6835ce02f..844a3753493988b1dfbb9274cab3d72d0ca293dd 100644 |
--- a/src/heap-inl.h |
+++ b/src/heap-inl.h |
@@ -470,7 +470,8 @@ bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) { |
return dst == src || dst == TargetSpaceId(type); |
case OLD_POINTER_SPACE: |
return dst == src && (dst == TargetSpaceId(type) || obj->IsFiller() || |
- (obj->IsExternalString())); |
+ (obj->IsExternalString() && |
+ ExternalString::cast(obj)->is_short())); |
case OLD_DATA_SPACE: |
return dst == src && dst == TargetSpaceId(type); |
case CODE_SPACE: |