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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerBackingThread.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/core/workers/WorkerBackingThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
index 79be6819f06d2d4093447ef13b30b950133827c2..a28ee9ee32730b1f6b0f084289fceb719a11bb62 100644
--- a/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerBackingThread.cpp
@@ -48,14 +48,14 @@ static void removeWorkerIsolate(v8::Isolate* isolate)
}
WorkerBackingThread::WorkerBackingThread(const char* name, bool shouldCallGCOnShutdown)
- : m_backingThread(WebThreadSupportingGC::create(name))
+ : m_backingThread(WebThreadSupportingGC::create(name, BlinkGC::MainThreadHeapMode))
, m_isOwningThread(true)
, m_shouldCallGCOnShutdown(shouldCallGCOnShutdown)
{
}
WorkerBackingThread::WorkerBackingThread(WebThread* thread, bool shouldCallGCOnShutdown)
- : m_backingThread(WebThreadSupportingGC::createForThread(thread, true))
+ : m_backingThread(WebThreadSupportingGC::createForThread(thread, BlinkGC::PerThreadHeapMode))
, m_isOwningThread(false)
, m_shouldCallGCOnShutdown(shouldCallGCOnShutdown)
{

Powered by Google App Engine
This is Rietveld 408576698