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

Unified Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1749073002: Do V8 GC ASAP if system memory is pressured (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/web/WebKit.cpp
diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
index f0ac13e62a2b6599a8aee2b4310dc3223c05ec14..0e66ffa078e9077a28a8adcbb52f62573e9f9ca7 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -36,6 +36,7 @@
#include "bindings/core/v8/V8Initializer.h"
#include "core/animation/AnimationClock.h"
#include "core/page/Page.h"
+#include "core/workers/WorkerBackingThread.h"
#include "gin/public/v8_platform.h"
#include "modules/ModulesInitializer.h"
#include "platform/LayoutTestSupport.h"
@@ -176,4 +177,11 @@ void decommitFreeableMemory()
WTF::Partitions::decommitFreeableMemory();
}
+void MemoryPressureNotificationToWorkerThreadIsolates(
+ v8::MemoryPressureLevel level)
+{
+ WorkerBackingThread::
+ MemoryPressureNotificationToWorkerThreadIsolates(level);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698