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

Issue 2456073003: Purge memory via MemoryCoordinatorClientRegistry when a backgrounded renderer is suspended. (Closed)

Created:
4 years, 1 month ago by tasak
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Purge memory via MemoryCoordinatorClientRegistry when a backgrounded renderer is suspended. - Added kPurgeAndSuspend to content feature list. - If kPurgeAndSuspend is enabled, purge memory and suspend. Otherwise, do nothing except recording UMA. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing - The feature is not enabled by default because purge-and-suspend-time is 0. BUG=635419 Committed: https://crrev.com/6ff44039ad107d09e4abd791dbb2d61358657600 Cr-Commit-Position: refs/heads/master@{#430225}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add DCHECK #

Total comments: 3

Patch Set 3 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -4 lines) Patch
M content/public/common/content_features.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_features.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 4 chunks +26 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
tasak
Would you review this CL?
4 years, 1 month ago (2016-10-28 05:34:28 UTC) #4
bashi
https://codereview.chromium.org/2456073003/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2456073003/diff/1/content/renderer/render_thread_impl.cc#newcode850 content/renderer/render_thread_impl.cc:850: base::FeatureList::IsEnabled(features::kPurgeAndSuspend)) { Let's discuss offline how to enable MemoryCoordinatorClients ...
4 years, 1 month ago (2016-10-28 05:45:05 UTC) #5
tasak
Thank you for review. https://codereview.chromium.org/2456073003/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2456073003/diff/1/content/renderer/render_thread_impl.cc#newcode850 content/renderer/render_thread_impl.cc:850: base::FeatureList::IsEnabled(features::kPurgeAndSuspend)) { On 2016/10/28 05:45:05, ...
4 years, 1 month ago (2016-10-28 06:29:35 UTC) #6
tasak
Would you review this CL? https://codereview.chromium.org/2456073003/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2456073003/diff/20001/content/renderer/render_thread_impl.cc#newcode1779 content/renderer/render_thread_impl.cc:1779: DCHECK(!is_renderer_suspended_); This needs https://codereview.chromium.org/2462513002/ ...
4 years, 1 month ago (2016-10-28 06:31:33 UTC) #8
bashi
lgtm on my side. BTW, do we still need kPurgeAndSuspendTime? Or should we use kPurgeAndSuspendTime ...
4 years, 1 month ago (2016-10-28 06:35:29 UTC) #9
tasak
On 2016/10/28 06:35:29, bashi1 wrote: > lgtm on my side. > > BTW, do we ...
4 years, 1 month ago (2016-10-28 06:55:51 UTC) #10
bashi
On 2016/10/28 06:55:51, tasak wrote: > On 2016/10/28 06:35:29, bashi1 wrote: > > lgtm on ...
4 years, 1 month ago (2016-10-28 06:58:24 UTC) #11
haraken
LGTM
4 years, 1 month ago (2016-10-28 07:48:42 UTC) #12
haraken
https://codereview.chromium.org/2456073003/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2456073003/diff/20001/content/renderer/render_thread_impl.cc#newcode1905 content/renderer/render_thread_impl.cc:1905: base::MemoryState::NORMAL); I'm not sure if this should be NORMAL. ...
4 years, 1 month ago (2016-10-28 07:49:41 UTC) #13
Avi (use Gerrit)
lgtm stamp
4 years, 1 month ago (2016-10-28 14:03:59 UTC) #14
chrisha
lgtm https://codereview.chromium.org/2456073003/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2456073003/diff/20001/content/renderer/render_thread_impl.cc#newcode1905 content/renderer/render_thread_impl.cc:1905: base::MemoryState::NORMAL); On 2016/10/28 07:49:41, haraken wrote: > > ...
4 years, 1 month ago (2016-11-01 21:24:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2456073003/40001
4 years, 1 month ago (2016-11-07 05:52:09 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-07 06:45:52 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 06:48:12 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6ff44039ad107d09e4abd791dbb2d61358657600
Cr-Commit-Position: refs/heads/master@{#430225}

Powered by Google App Engine
This is Rietveld 408576698