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

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

Issue 2355193002: Use enum for per thread heap enabled flag (Closed)
Patch Set: fix Created 4 years, 3 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.cpp
diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
index bb85da48a415342ec8811f2988c549eb38580682..846d5ef6b1b8c48f5fe9334a93ef635162317ebe 100644
--- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
+++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
@@ -12,19 +12,19 @@
namespace blink {
-std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name, bool perThreadHeapEnabled)
+std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name, BlinkGC::ThreadHeapMode threadHeapMode)
{
- return wrapUnique(new WebThreadSupportingGC(name, nullptr, perThreadHeapEnabled));
+ return wrapUnique(new WebThreadSupportingGC(name, nullptr, threadHeapMode));
}
-std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::createForThread(WebThread* thread, bool perThreadHeapEnabled)
+std::unique_ptr<WebThreadSupportingGC> WebThreadSupportingGC::createForThread(WebThread* thread, BlinkGC::ThreadHeapMode threadHeapMode)
{
- return wrapUnique(new WebThreadSupportingGC(nullptr, thread, perThreadHeapEnabled));
+ return wrapUnique(new WebThreadSupportingGC(nullptr, thread, threadHeapMode));
}
-WebThreadSupportingGC::WebThreadSupportingGC(const char* name, WebThread* thread, bool perThreadHeapEnabled)
+WebThreadSupportingGC::WebThreadSupportingGC(const char* name, WebThread* thread, BlinkGC::ThreadHeapMode threadHeapMode)
: m_thread(thread)
- , m_perThreadHeapEnabled(perThreadHeapEnabled)
+ , m_threadHeapMode(threadHeapMode)
{
#if ENABLE(ASSERT)
ASSERT(!name || !thread);
@@ -50,7 +50,7 @@ WebThreadSupportingGC::~WebThreadSupportingGC()
void WebThreadSupportingGC::initialize()
{
- ThreadState::attachCurrentThread(m_perThreadHeapEnabled);
+ ThreadState::attachCurrentThread(m_threadHeapMode);
m_gcTaskRunner = wrapUnique(new GCTaskRunner(m_thread));
}
« no previous file with comments | « third_party/WebKit/Source/platform/WebThreadSupportingGC.h ('k') | third_party/WebKit/Source/platform/heap/BlinkGC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698