| Index: third_party/WebKit/Source/platform/SharedBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/SharedBuffer.cpp b/third_party/WebKit/Source/platform/SharedBuffer.cpp
|
| index 5e2195e645d9fadf75430002ddc1295f52370842..f898cd14e4ccc48595c031d43af6bcefb8202701 100644
|
| --- a/third_party/WebKit/Source/platform/SharedBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/SharedBuffer.cpp
|
| @@ -255,13 +255,12 @@ void SharedBuffer::onMemoryDump(const String& dumpPrefix,
|
| dump->addScalar("size", "bytes", m_buffer.size());
|
| memoryDump->addSuballocation(
|
| dump->guid(), String(WTF::Partitions::kAllocatedObjectPoolName));
|
| - }
|
| - if (m_segments.size()) {
|
| + } else {
|
| // If there is data in the segments, then it should have been allocated
|
| // using fastMalloc.
|
| const String dataDumpName = dumpPrefix + "/segments";
|
| auto dump = memoryDump->createMemoryAllocatorDump(dataDumpName);
|
| - dump->addScalar("size", "bytes", m_size - m_buffer.size());
|
| + dump->addScalar("size", "bytes", m_size);
|
| memoryDump->addSuballocation(
|
| dump->guid(), String(WTF::Partitions::kAllocatedObjectPoolName));
|
| }
|
|
|