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

Unified Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.h

Issue 1910753002: Add enablePerThreadHeap flag to ThreadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/WebThreadSupportingGC.h
diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
index 32ea91a4ae037f8cfa9aceaf2c9839bf73a5d257..b64835bac67538a6995d560799297027e2824b24 100644
--- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
+++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.h
@@ -29,8 +29,8 @@ class PLATFORM_EXPORT WebThreadSupportingGC final {
USING_FAST_MALLOC(WebThreadSupportingGC);
WTF_MAKE_NONCOPYABLE(WebThreadSupportingGC);
public:
- static PassOwnPtr<WebThreadSupportingGC> create(const char* name);
- static PassOwnPtr<WebThreadSupportingGC> createForThread(WebThread*);
+ static PassOwnPtr<WebThreadSupportingGC> create(const char* name, bool perThreadHeapEnabled = false);
+ static PassOwnPtr<WebThreadSupportingGC> createForThread(WebThread*, bool perThreadHeapEnabled = false);
~WebThreadSupportingGC();
void postTask(const WebTraceLocation& location, PassOwnPtr<SameThreadClosure> task)
@@ -78,7 +78,7 @@ public:
}
private:
- WebThreadSupportingGC(const char* name, WebThread*);
+ WebThreadSupportingGC(const char* name, WebThread*, bool perThreadHeapEnabled);
OwnPtr<GCTaskRunner> m_gcTaskRunner;
@@ -87,6 +87,7 @@ private:
// existing thread via createForThread().
WebThread* m_thread = nullptr;
OwnPtr<WebThread> m_owningThread;
+ bool m_perThreadHeapEnabled;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698