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

Issue 2230433002: Add MemoryCoordinatorClient (Closed)

Created:
4 years, 4 months ago by bashi
Modified:
4 years, 4 months ago
Reviewers:
haraken, esprehn, tasak, boliu
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, jam, Nate Chapin, kinuko+watch, loading-reviews+fetch_chromium.org, mlamouri+watch-content_chromium.org, rwlbuis, sof, tyoshino+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add MemoryCoordinatorClient Also move MemoryCoordinator from core/dom to platform/. This is a preparation for experimenting purge and suspend [1,2]. [1] https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit [2] https://codereview.chromium.org/2130683002/ Committed: https://crrev.com/75ce9c3e2c15f2df215184026162dc505df37e4b Cr-Commit-Position: refs/heads/master@{#412171}

Patch Set 1 #

Patch Set 2 : tweak #

Total comments: 8

Patch Set 3 : comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -125 lines) Patch
M content/renderer/render_thread_impl.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
D third_party/WebKit/Source/core/dom/MemoryCoordinator.h View 1 chunk +0 lines, -30 lines 0 comments Download
D third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp View 1 chunk +0 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.h View 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/MemoryCache.cpp View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/MemoryCoordinator.h View 1 1 chunk +56 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/platform/MemoryCoordinator.cpp View 1 3 chunks +35 lines, -4 lines 1 comment Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/platform/exported/WebMemoryCoordinator.cpp View 2 chunks +7 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/web/WebMemoryCoordinator.cpp View 1 chunk +0 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 chunks +1 line, -1 line 0 comments Download
A + third_party/WebKit/public/platform/WebMemoryCoordinator.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
D third_party/WebKit/public/web/WebMemoryCoordinator.h View 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
bashi
Sakamoto-san, Does this fit your purpose? I intentionally separate onMemoryPressure() from purgeMemory() so that you ...
4 years, 4 months ago (2016-08-09 08:01:38 UTC) #2
bashi
haraken@, esprehn@, Could you review this? tasak@ seems OK with this approach.
4 years, 4 months ago (2016-08-11 23:00:37 UTC) #7
haraken
LGTM https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode123 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:123: MemoryCoordinator::instance().unregisterClient(this); We don't need to call this since ...
4 years, 4 months ago (2016-08-12 02:55:01 UTC) #10
tasak
lgtm
4 years, 4 months ago (2016-08-15 08:07:58 UTC) #11
tasak
https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/public/platform/WebMemoryCoordinator.h File third_party/WebKit/public/platform/WebMemoryCoordinator.h (right): https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/public/platform/WebMemoryCoordinator.h#newcode21 third_party/WebKit/public/platform/WebMemoryCoordinator.h:21: BLINK_EXPORT static void purgeMemory(); BLINK_PLATFORM_EXPORT? Because: e:\b\c\b\win\src\third_party\webkit\source\platform\exported\webmemorycoordinator.cpp(17): warning C4273: ...
4 years, 4 months ago (2016-08-15 08:12:24 UTC) #12
esprehn
lgtm https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode743 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:743: if (ProcessHeap::isLowEndDevice()) Hmm, should we do this in ...
4 years, 4 months ago (2016-08-15 15:41:07 UTC) #13
bashi
Thanks for reviews! https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode123 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:123: MemoryCoordinator::instance().unregisterClient(this); On 2016/08/12 02:55:00, haraken wrote: ...
4 years, 4 months ago (2016-08-16 00:09:07 UTC) #14
haraken
https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode123 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:123: MemoryCoordinator::instance().unregisterClient(this); On 2016/08/16 00:09:06, bashi1 (slow til 16 Aug) ...
4 years, 4 months ago (2016-08-16 02:37:04 UTC) #15
bashi
https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp File third_party/WebKit/Source/core/fetch/MemoryCache.cpp (right): https://codereview.chromium.org/2230433002/diff/20001/third_party/WebKit/Source/core/fetch/MemoryCache.cpp#newcode123 third_party/WebKit/Source/core/fetch/MemoryCache.cpp:123: MemoryCoordinator::instance().unregisterClient(this); On 2016/08/16 02:37:04, haraken wrote: > On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 02:39:42 UTC) #16
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/2230433002/40001
4 years, 4 months ago (2016-08-16 02:40:04 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-16 05:42:58 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/75ce9c3e2c15f2df215184026162dc505df37e4b Cr-Commit-Position: refs/heads/master@{#412171}
4 years, 4 months ago (2016-08-16 05:44:38 UTC) #23
boliu
is this safe to revert? https://codereview.chromium.org/2230433002/diff/40001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp File third_party/WebKit/Source/platform/MemoryCoordinator.cpp (right): https://codereview.chromium.org/2230433002/diff/40001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp#newcode58 third_party/WebKit/Source/platform/MemoryCoordinator.cpp:58: client->onMemoryPressure(level); Getting a null ...
4 years, 4 months ago (2016-08-16 17:26:28 UTC) #25
esprehn
On 2016/08/16 at 17:26:28, boliu wrote: > is this safe to revert? > > https://codereview.chromium.org/2230433002/diff/40001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp ...
4 years, 4 months ago (2016-08-16 17:27:50 UTC) #26
boliu
4 years, 4 months ago (2016-08-16 17:29:58 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2252743002/ by boliu@chromium.org.

The reason for reverting is: Null pointer crash. See crbug.com/638274

BUG=638274.

Powered by Google App Engine
This is Rietveld 408576698