diff options
Diffstat (limited to 'chromium/v8/src/heap/cppgc/heap-statistics-collector.cc')
-rw-r--r-- | chromium/v8/src/heap/cppgc/heap-statistics-collector.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/v8/src/heap/cppgc/heap-statistics-collector.cc b/chromium/v8/src/heap/cppgc/heap-statistics-collector.cc index 961148babd8..ef283e856ad 100644 --- a/chromium/v8/src/heap/cppgc/heap-statistics-collector.cc +++ b/chromium/v8/src/heap/cppgc/heap-statistics-collector.cc @@ -148,7 +148,7 @@ bool HeapStatisticsCollector::VisitHeapObjectHeader(HeapObjectHeader* header) { DCHECK_NOT_NULL(current_space_stats_); DCHECK_NOT_NULL(current_page_stats_); if (header->IsFree()) return true; - size_t object_size = header->GetSize(); + size_t object_size = header->AllocatedSize(); RecordObjectType(current_space_stats_, header, object_size); current_page_stats_->used_size_bytes += object_size; return true; |