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

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: rebased Created 4 years, 7 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 | « no previous file | third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 883e9d6db75af30d32a55aeebd3d8ca0c1791641..a111785353deacf144ae676561eccc479a1dd0dc 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698