| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 66d847a85d5cbd0f1ff223c17e668999733b9d04..128842a5155bae1e4d263273d5d904d779e4a065 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -2229,6 +2229,13 @@ static void RightTrimFixedArray(Heap* heap, FixedArray* elms, int to_trim) {
|
| MemoryChunk::IncrementLiveBytesFromMutator(elms->address(), -size_delta);
|
| }
|
| }
|
| +
|
| + // The array may not be moved during GC,
|
| + // and size has to be adjusted nevertheless.
|
| + HeapProfiler* profiler = heap->isolate()->heap_profiler();
|
| + if (profiler->is_tracking_allocations()) {
|
| + profiler->UpdateObjectSizeEvent(elms->address(), elms->Size());
|
| + }
|
| }
|
|
|
|
|
|
|