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

Issue 2669323002: Add ChildMemoryCoordinator::PurgeMemory() (Closed)

Created:
3 years, 10 months ago by bashi
Modified:
3 years, 10 months ago
Reviewers:
haraken, tasak, jam, Wez
CC:
chromium-reviews, jam, darin-cc_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ChildMemoryCoordinator::PurgeMemory() In crrev.com/2655083003 we added OnPurgeMemory() to MemoryCoordinatorClient and we are moving purging logic from OnMemoryStateChange() to OnPurgeMemory(). To make this transition easy, this CL adds PurgeMemory() to ChildMemoryCoordinator. This method calls both OnPurgeMemory() and OnMemoryStateChange(SUSPENDED). After purging logic in all clients move to OnPurgeMemory(), we can remove OnMemoryStateChange() call. BUG=684287 Review-Url: https://codereview.chromium.org/2669323002 Cr-Commit-Position: refs/heads/master@{#448475} Committed: https://chromium.googlesource.com/chromium/src/+/110841cafec3a76ab7446dc7c59107572a2fc68f

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M content/child/memory/child_memory_coordinator_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/memory/child_memory_coordinator_impl.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +1 line, -4 lines 2 comments Download

Messages

Total messages: 23 (11 generated)
bashi
tasak@: PTAL before asking owners review? https://codereview.chromium.org/2669323002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (left): https://codereview.chromium.org/2669323002/diff/1/content/renderer/render_thread_impl.cc#oldcode1673 content/renderer/render_thread_impl.cc:1673: // TODO(tasak): After ...
3 years, 10 months ago (2017-02-02 19:47:00 UTC) #4
tasak
lgtm https://codereview.chromium.org/2669323002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (left): https://codereview.chromium.org/2669323002/diff/1/content/renderer/render_thread_impl.cc#oldcode1673 content/renderer/render_thread_impl.cc:1673: // TODO(tasak): After enabling MemoryCoordinator, remove this Notify ...
3 years, 10 months ago (2017-02-03 04:09:33 UTC) #7
bashi
jam: could you review content/renderer/ ? haraken: could you review content/child/memory ?
3 years, 10 months ago (2017-02-03 04:30:29 UTC) #9
haraken
Do we have a test for ChildMemoryCoordinator::PurgeMemory()?
3 years, 10 months ago (2017-02-03 04:32:26 UTC) #10
bashi
On 2017/02/03 04:32:26, haraken wrote: > Do we have a test for ChildMemoryCoordinator::PurgeMemory()? No. Should ...
3 years, 10 months ago (2017-02-03 04:37:24 UTC) #11
haraken
On 2017/02/03 04:37:24, bashi wrote: > On 2017/02/03 04:32:26, haraken wrote: > > Do we ...
3 years, 10 months ago (2017-02-03 04:38:34 UTC) #12
jam
lgtm
3 years, 10 months ago (2017-02-06 18:48:15 UTC) #13
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/2669323002/20001
3 years, 10 months ago (2017-02-06 23:17:21 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/110841cafec3a76ab7446dc7c59107572a2fc68f
3 years, 10 months ago (2017-02-07 00:51:57 UTC) #19
Wez
https://codereview.chromium.org/2669323002/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2669323002/diff/20001/content/renderer/render_thread_impl.cc#newcode1673 content/renderer/render_thread_impl.cc:1673: memory_coordinator_->PurgeMemory(); Isn't |memory_coordinator_| only initialized if MemoryCoordinator is enabled, ...
3 years, 10 months ago (2017-02-15 19:51:58 UTC) #21
Wez
https://codereview.chromium.org/2669323002/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2669323002/diff/20001/content/renderer/render_thread_impl.cc#newcode826 content/renderer/render_thread_impl.cc:826: DCHECK(!base::FeatureList::IsEnabled(features::kPurgeAndSuspend)); We have both MemoryCoordinator and PurgeAndSuspend enabled in ...
3 years, 10 months ago (2017-02-15 21:41:03 UTC) #22
Wez
3 years, 10 months ago (2017-02-15 22:48:06 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2693223003/ by wez@chromium.org.

The reason for reverting is: Appears to be the root cause of crbug.com/692509
(renderer crashes in RenderThreadImpl::OnProcessPurgeAndSuspend) - although the
timeline doesn't match up, the change to RenderThreadImpl appears incorrect by
inspection (see my comment in the original CL)..

Powered by Google App Engine
This is Rietveld 408576698