| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index b91134bc34be9aeb75d4fff477adcd902787379e..c76aa111d587ce41f544201edaa2ed1dfeddfe89 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());
|
| + }
|
| }
|
|
|
|
|
|
|