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

Issue 2496863003: Invoke OnTrimMemoryImmediately when memory state is SUSPENDED (Closed)

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

Description

Invoke OnTrimMemoryImmediately when memory state is SUSPENDED When memory state is changed to be SUSPENDED, invoke v8 GC via OnTrimMemoryImmediately. It is important to reduce renderer's memory when suspended. - Purge+Suspend is controlled by base::Feature::kPurgeAndSuspend (c.f. @430225), and is disabled by default. - 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 BUG=607077 Committed: https://crrev.com/61b4aeba94c28323a9db0b338aa13112759ab47c Cr-Commit-Position: refs/heads/master@{#433793}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add comment. #

Patch Set 3 : Move V8 GC call to OnMemoryStateChange #

Patch Set 4 : Rebaselined #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M content/renderer/render_thread_impl.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (27 generated)
tasak
Would you review this CL?
4 years, 1 month ago (2016-11-11 07:35:27 UTC) #4
bashi
non-owner lgtm https://codereview.chromium.org/2496863003/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2496863003/diff/1/content/renderer/render_thread_impl.cc#newcode1772 content/renderer/render_thread_impl.cc:1772: RenderThreadImpl::OnSyncMemoryPressure( nit: Could you add a comment ...
4 years, 1 month ago (2016-11-11 07:45:24 UTC) #5
haraken
https://codereview.chromium.org/2496863003/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2496863003/diff/1/content/renderer/render_thread_impl.cc#newcode1773 content/renderer/render_thread_impl.cc:1773: base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL); Just to confirm: This triggers Oilpan's GC too, ...
4 years, 1 month ago (2016-11-11 08:58:40 UTC) #8
tasak
Thank you for review. https://codereview.chromium.org/2496863003/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2496863003/diff/1/content/renderer/render_thread_impl.cc#newcode1772 content/renderer/render_thread_impl.cc:1772: RenderThreadImpl::OnSyncMemoryPressure( On 2016/11/11 07:45:23, bashi1 ...
4 years, 1 month ago (2016-11-14 06:07:58 UTC) #13
bashi
On 2016/11/14 06:07:58, tasak wrote: > Thank you for review. > > https://codereview.chromium.org/2496863003/diff/1/content/renderer/render_thread_impl.cc > File ...
4 years, 1 month ago (2016-11-14 06:21:22 UTC) #14
haraken
On 2016/11/14 06:21:22, bashi1 wrote: > On 2016/11/14 06:07:58, tasak wrote: > > Thank you ...
4 years, 1 month ago (2016-11-14 07:17:22 UTC) #15
tasak
On 2016/11/14 07:17:22, haraken wrote: > On 2016/11/14 06:21:22, bashi1 wrote: > > On 2016/11/14 ...
4 years, 1 month ago (2016-11-14 09:46:54 UTC) #16
bashi
On 2016/11/14 09:46:54, tasak wrote: > On 2016/11/14 07:17:22, haraken wrote: > > On 2016/11/14 ...
4 years, 1 month ago (2016-11-14 12:19:45 UTC) #17
tasak
On 2016/11/14 12:19:45, bashi1 wrote: > On 2016/11/14 09:46:54, tasak wrote: > > On 2016/11/14 ...
4 years, 1 month ago (2016-11-15 02:26:36 UTC) #20
bashi
On 2016/11/15 02:26:36, tasak wrote: > On 2016/11/14 12:19:45, bashi1 wrote: > > On 2016/11/14 ...
4 years, 1 month ago (2016-11-15 02:58:08 UTC) #24
haraken
LGTM
4 years, 1 month ago (2016-11-15 04:47:33 UTC) #27
tasak
avi, would you review this CL?
4 years, 1 month ago (2016-11-16 19:04:11 UTC) #29
tasak
avi, would you review this CL? This CL is adding one line to render_thread_impl.cc. I ...
4 years ago (2016-11-22 04:54:09 UTC) #35
Avi (use Gerrit)
LGTM Please wait only one business day before poking me if I miss your review.
4 years ago (2016-11-22 04:58:34 UTC) #36
tasak
Thank you for review. On 2016/11/22 04:58:34, Avi wrote: > LGTM > > Please wait ...
4 years ago (2016-11-22 05:06:24 UTC) #37
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/2496863003/80001
4 years ago (2016-11-22 05:06:41 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years ago (2016-11-22 05:10:59 UTC) #43
commit-bot: I haz the power
4 years ago (2016-11-22 05:12:56 UTC) #45
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/61b4aeba94c28323a9db0b338aa13112759ab47c
Cr-Commit-Position: refs/heads/master@{#433793}

Powered by Google App Engine
This is Rietveld 408576698