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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2496863003: Invoke OnTrimMemoryImmediately when memory state is SUSPENDED (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index d569350255fc98759f0de7ce89f7cd3374f98c42..21ac4aa6f154b4169a7c561dd1080c2b88eef4a4 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1769,6 +1769,8 @@ void RenderThreadImpl::OnProcessPurgeAndSuspend() {
// and follow MemoryCoordinator's request.
base::MemoryCoordinatorClientRegistry::GetInstance()->Notify(
base::MemoryState::SUSPENDED);
+ RenderThreadImpl::OnSyncMemoryPressure(
bashi 2016/11/11 07:45:23 nit: Could you add a comment why we call this and
tasak 2016/11/14 06:07:58 Done.
+ base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL);
haraken 2016/11/11 08:58:40 Just to confirm: This triggers Oilpan's GC too, ri
tasak 2016/11/14 06:07:58 Yes. Manually tested purge+suspend without action_
renderer_scheduler_->SuspendRenderer();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698