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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.h

Issue 1749073002: Do V8 GC ASAP if system memory is pressured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: send synchronous notification to worker thread 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/core/workers/WorkerThread.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.h b/third_party/WebKit/Source/core/workers/WorkerThread.h
index cf6ccda60c48906f732f64b14228702f890c4c55..be5c3300505fb37ec2f7fd1633c818652acc5fe7 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.h
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.h
@@ -38,6 +38,7 @@
#include "wtf/Functional.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassRefPtr.h"
+#include <set>
#include <v8.h>
namespace blink {
@@ -114,6 +115,8 @@ public:
PlatformThreadId platformThreadId();
+ static std::set<v8::Isolate*>* workerThreadIsolates();
kinuko 2016/04/11 09:30:40 Why we return mutable pointer to the set here?
hong.zheng 2016/04/15 06:05:57 Done.
+
protected:
WorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
@@ -174,6 +177,8 @@ private:
// Used to signal thread termination.
OwnPtr<WaitableEvent> m_terminationEvent;
+
+ static std::set<v8::Isolate*>* gIsolates;
kinuko 2016/04/11 09:30:40 Why do we need to have this in the header?
hong.zheng 2016/04/15 06:05:57 Done.
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698