| Index: src/heap/mark-compact.cc
|
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
| index 18be34594243eae98b1351a553ea7addefdbab71..f28b5c578223bce8788665ece1797ceeacefd0bc 100644
|
| --- a/src/heap/mark-compact.cc
|
| +++ b/src/heap/mark-compact.cc
|
| @@ -2723,7 +2723,7 @@ void MarkCompactCollector::TrimDescriptorArray(Map* map,
|
| int to_trim = number_of_descriptors - number_of_own_descriptors;
|
| if (to_trim > 0) {
|
| heap_->RightTrimFixedArray(descriptors,
|
| - to_trim * DescriptorArray::kDescriptorSize);
|
| + to_trim * DescriptorArray::kEntrySize);
|
| descriptors->SetNumberOfDescriptors(number_of_own_descriptors);
|
|
|
| if (descriptors->HasEnumCache()) TrimEnumCache(map, descriptors);
|
|
|