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

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

Issue 1721333002: Bug fix: Add BlinkGC allocation hooks to CSS, Node and vector/table backing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hook in allocateOnHeapIndex Created 4 years, 10 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
Index: third_party/WebKit/Source/platform/heap/HeapTest.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapTest.cpp b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
index 965d1bb1e3b2f6fcd88e156f47c11310c52ac003..a3ccc67b4e82c2e055e31c450b43f68979203f0e 100644
--- a/third_party/WebKit/Source/platform/heap/HeapTest.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapTest.cpp
@@ -775,7 +775,8 @@ public:
void* operator new(size_t size)
{
ThreadState* state = ThreadState::current();
- return Heap::allocateOnHeapIndex(state, size, BlinkGC::NodeHeapIndex, GCInfoTrait<IntNode>::index());
+ const char* typeName = WTF_HEAP_PROFILER_TYPE_NAME(IntNode);
Primiano Tucci (use gerrit) 2016/02/29 17:23:14 don't know how frequent this is, if is significant
sof 2016/03/03 08:37:30 (This is a unit test.)
hajimehoshi 2016/03/03 10:12:31 Since this is a unit test and we don't relatively
+ return Heap::allocateOnHeapIndex(state, size, BlinkGC::NodeHeapIndex, GCInfoTrait<IntNode>::index(), typeName);
}
static IntNode* create(int i)

Powered by Google App Engine
This is Rietveld 408576698