Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: third_party/WebKit/Source/platform/heap/BlinkGCMemoryDumpProvider.cpp

Issue 2637783002: [tracing] Don't register tracing-related allocations. (Closed)
Patch Set: Fix unittest Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « third_party/WebKit/Source/platform/PartitionAllocMemoryDumpProvider.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698