| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index daa5a4a5bdad825e7d73fc42531df9e23ac848b6..95d9c83b5179ce4002fa0b3818e8d535ae795c20 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -2312,6 +2312,13 @@ static void RightTrimFixedArray(Heap* heap, FixedArray* elms, int to_trim) {
|
| MemoryChunk::IncrementLiveBytesFromMutator(elms->address(), -size_delta);
|
| }
|
| }
|
| +
|
| + // This repeating record is necessary because the array may not be moved
|
| + // during GC, and size has to be adjusted nevetheless.
|
| + HeapProfiler* profiler = heap->isolate()->heap_profiler();
|
| + if (profiler->is_tracking_allocations()) {
|
| + profiler->NewObjectEvent(elms->address(), elms->Size());
|
| + }
|
| }
|
|
|
|
|
|
|