Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/css/CSSValue.h

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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | third_party/WebKit/Source/core/dom/Node.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSValue.h b/third_party/WebKit/Source/core/css/CSSValue.h
index e5d7588113b10b3b19a61b753c0af83bc8de975b..041907d450887c5e13e681bd7e3ecc4f20555f61 100644
--- a/third_party/WebKit/Source/core/css/CSSValue.h
+++ b/third_party/WebKit/Source/core/css/CSSValue.h
@@ -44,7 +44,8 @@ public:
static void* allocateObject(size_t size, bool isEager)
{
ThreadState* state = ThreadStateFor<ThreadingTrait<CSSValue>::Affinity>::state();
- return Heap::allocateOnHeapIndex(state, size, isEager ? BlinkGC::EagerSweepHeapIndex : BlinkGC::CSSValueHeapIndex, GCInfoTrait<CSSValue>::index());
+ const char* typeName = WTF_HEAP_PROFILER_TYPE_NAME(CSSValue);
Primiano Tucci (use gerrit) 2016/02/29 17:23:14 Considering that IIUC this is a pretty heavy user
hajimehoshi 2016/03/03 10:12:31 Right. It'd be best if we could get children class
+ return Heap::allocateOnHeapIndex(state, size, isEager ? BlinkGC::EagerSweepHeapIndex : BlinkGC::CSSValueHeapIndex, GCInfoTrait<CSSValue>::index(), typeName);
}
#else
USING_FAST_MALLOC_WITH_TYPE_NAME(blink::CSSValue);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | third_party/WebKit/Source/core/dom/Node.h » ('J')

Powered by Google App Engine