Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/JsEngine.cpp

Issue 29447555: Issue 5275 - Minimize memory usage as soon as possible (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created May 24, 2017, 12:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/JsEngine.cpp
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp
index d9b77228053edd5c27d6f753cd0aa534c71e984a..6d7446f4192291c523b444c3e3047cfd41d81bb4 100644
--- a/src/JsEngine.cpp
+++ b/src/JsEngine.cpp
@@ -95,6 +95,12 @@ JsEngine::JsWeakValuesList::~JsWeakValuesList()
value->Dispose();
}
+void JsEngine::NotifyLowMemory()
+{
+ const JsContext context(*this);
+ v8::V8::LowMemoryNotification();
+}
+
void JsEngine::ScheduleTimer(const v8::Arguments& arguments)
{
auto jsEngine = FromArguments(arguments);
« no previous file with comments | « src/FilterEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld