| Index: third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp b/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| index b4f686dfac6f30a21aff8281d7e3c87bd11eb225..65ef5dee4f06439b05f7b8ab8dcdd65af40863d2 100644
|
| --- a/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp
|
| @@ -127,9 +127,11 @@ BlinkGCMemoryDumpProvider::BlinkGCMemoryDumpProvider()
|
| void BlinkGCMemoryDumpProvider::insert(Address address,
|
| size_t size,
|
| const char* typeName) {
|
| - base::trace_event::AllocationContext context =
|
| - base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
|
| - ->GetContextSnapshot();
|
| + base::trace_event::AllocationContext context;
|
| + if (!base::trace_event::AllocationContextTracker::
|
| + GetInstanceForCurrentThread()
|
| + ->GetContextSnapshot(&context))
|
| + return;
|
| context.type_name = typeName;
|
| MutexLocker locker(m_allocationRegisterMutex);
|
| if (m_allocationRegister)
|
|
|