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

Unified Diff: include/AdblockPlus/JsEngine.h

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 | « no previous file | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/JsEngine.h
diff --git a/include/AdblockPlus/JsEngine.h b/include/AdblockPlus/JsEngine.h
index ead2088943a4c68e305faa29f123edf7c42b9001..ca7b5f3e63e761f1329392c174419b20bc45978f 100644
--- a/include/AdblockPlus/JsEngine.h
+++ b/include/AdblockPlus/JsEngine.h
@@ -313,6 +313,11 @@ namespace AdblockPlus
return isolate->Get();
}
+ /**
+ * Notifies JS engine about critically low memory what should cause a
+ * garbage collection.
+ */
+ void NotifyLowMemory();
private:
void CallTimerTask(const JsWeakValuesID& timerParamsID);
« no previous file with comments | « no previous file | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld