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

Issue 2933503002: Add IsCurrentlyLowMemory (Closed)

Created:
3 years, 6 months ago by keishi
Modified:
3 years, 6 months ago
Reviewers:
haraken, Yaron, bashi
CC:
chromium-reviews, blink-reviews, danakj+watch_chromium.org, agrieve+watch_chromium.org, kinuko+watch, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add IsCurrentlyLowMemory IsCurrentlyLowMemory returns Android's MemoryInfo.lowMemory This will be used as a GC triggering signal for low end devices. BUG=732664 Review-Url: https://codereview.chromium.org/2933503002 Cr-Commit-Position: refs/heads/master@{#480737} Committed: https://chromium.googlesource.com/chromium/src/+/ee6d2bccc4bdd982803f7c475f61a54675f4d555

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix #

Total comments: 2

Patch Set 4 : fix #

Total comments: 2

Patch Set 5 : fix #

Total comments: 3

Patch Set 6 : changed to private #

Total comments: 2

Patch Set 7 : added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -0 lines) Patch
M base/android/java/src/org/chromium/base/SysUtils.java View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M base/android/sys_utils.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M base/android/sys_utils.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/MemoryCoordinator.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/MemoryCoordinator.cpp View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (13 generated)
keishi
I plan to use this as a signal to trigger a page navigation GC. Design ...
3 years, 6 months ago (2017-06-09 05:20:40 UTC) #2
bashi
On 2017/06/09 05:20:40, keishi wrote: > I plan to use this as a signal to ...
3 years, 6 months ago (2017-06-09 05:38:06 UTC) #3
keishi
On 2017/06/09 05:38:06, bashi wrote: > On 2017/06/09 05:20:40, keishi wrote: > > I plan ...
3 years, 6 months ago (2017-06-09 05:40:48 UTC) #4
bashi
On 2017/06/09 05:40:48, keishi wrote: > On 2017/06/09 05:38:06, bashi wrote: > > On 2017/06/09 ...
3 years, 6 months ago (2017-06-09 05:45:09 UTC) #5
keishi
+haraken So I'm wondering how I should be exposing this function to Blink. MemoryCoordinator wasn't ...
3 years, 6 months ago (2017-06-09 07:33:08 UTC) #7
haraken
On 2017/06/09 07:33:08, keishi wrote: > +haraken > > So I'm wondering how I should ...
3 years, 6 months ago (2017-06-12 00:51:54 UTC) #8
keishi
On 2017/06/12 00:51:54, haraken wrote: > On 2017/06/09 07:33:08, keishi wrote: > > +haraken > ...
3 years, 6 months ago (2017-06-12 05:46:53 UTC) #9
bashi
On 2017/06/12 05:46:53, keishi wrote: > On 2017/06/12 00:51:54, haraken wrote: > > On 2017/06/09 ...
3 years, 6 months ago (2017-06-12 05:50:25 UTC) #10
haraken
https://codereview.chromium.org/2933503002/diff/40001/third_party/WebKit/Source/platform/MemoryCoordinator.h File third_party/WebKit/Source/platform/MemoryCoordinator.h (right): https://codereview.chromium.org/2933503002/diff/40001/third_party/WebKit/Source/platform/MemoryCoordinator.h#newcode50 third_party/WebKit/Source/platform/MemoryCoordinator.h:50: static bool HasLowAvailableMemory(); Where is the implementation of this ...
3 years, 6 months ago (2017-06-12 06:14:20 UTC) #11
keishi
https://codereview.chromium.org/2933503002/diff/40001/third_party/WebKit/Source/platform/MemoryCoordinator.h File third_party/WebKit/Source/platform/MemoryCoordinator.h (right): https://codereview.chromium.org/2933503002/diff/40001/third_party/WebKit/Source/platform/MemoryCoordinator.h#newcode50 third_party/WebKit/Source/platform/MemoryCoordinator.h:50: static bool HasLowAvailableMemory(); On 2017/06/12 06:14:20, haraken wrote: > ...
3 years, 6 months ago (2017-06-12 07:48:13 UTC) #12
haraken
LGTM
3 years, 6 months ago (2017-06-12 08:21:57 UTC) #13
bashi
https://codereview.chromium.org/2933503002/diff/60001/base/android/java/src/org/chromium/base/SysUtils.java File base/android/java/src/org/chromium/base/SysUtils.java (right): https://codereview.chromium.org/2933503002/diff/60001/base/android/java/src/org/chromium/base/SysUtils.java#newcode111 base/android/java/src/org/chromium/base/SysUtils.java:111: public static boolean hasLowAvailableMemory() { isCurrentlyLowMemory() ?
3 years, 6 months ago (2017-06-12 08:28:17 UTC) #14
keishi
https://codereview.chromium.org/2933503002/diff/60001/base/android/java/src/org/chromium/base/SysUtils.java File base/android/java/src/org/chromium/base/SysUtils.java (right): https://codereview.chromium.org/2933503002/diff/60001/base/android/java/src/org/chromium/base/SysUtils.java#newcode111 base/android/java/src/org/chromium/base/SysUtils.java:111: public static boolean hasLowAvailableMemory() { On 2017/06/12 08:28:17, bashi ...
3 years, 6 months ago (2017-06-12 09:32:36 UTC) #15
keishi
+yfriedman Could you PTAL? I plan to use this for an Android Go memory reduction ...
3 years, 6 months ago (2017-06-12 10:43:36 UTC) #18
Yaron
https://codereview.chromium.org/2933503002/diff/80001/base/android/java/src/org/chromium/base/SysUtils.java File base/android/java/src/org/chromium/base/SysUtils.java (right): https://codereview.chromium.org/2933503002/diff/80001/base/android/java/src/org/chromium/base/SysUtils.java#newcode111 base/android/java/src/org/chromium/base/SysUtils.java:111: public static boolean isCurrentlyLowMemory() { make private if only ...
3 years, 6 months ago (2017-06-12 18:56:47 UTC) #19
keishi
https://codereview.chromium.org/2933503002/diff/80001/base/android/java/src/org/chromium/base/SysUtils.java File base/android/java/src/org/chromium/base/SysUtils.java (right): https://codereview.chromium.org/2933503002/diff/80001/base/android/java/src/org/chromium/base/SysUtils.java#newcode116 base/android/java/src/org/chromium/base/SysUtils.java:116: am.getMemoryInfo(info); On 2017/06/12 18:56:47, Yaron wrote: > Did you ...
3 years, 6 months ago (2017-06-13 03:31:15 UTC) #20
bashi
lgtm on my side. Could you file a bug entry for this?
3 years, 6 months ago (2017-06-13 04:15:41 UTC) #21
keishi
On 2017/06/13 04:15:41, bashi wrote: > lgtm on my side. > > Could you file ...
3 years, 6 months ago (2017-06-13 04:17:05 UTC) #23
keishi
yaron Ping
3 years, 6 months ago (2017-06-14 10:56:41 UTC) #24
Yaron
Sorry for the delay. Took some time to dig into the details and design docs. ...
3 years, 6 months ago (2017-06-14 15:45:09 UTC) #25
keishi
https://codereview.chromium.org/2933503002/diff/100001/third_party/WebKit/Source/platform/MemoryCoordinator.h File third_party/WebKit/Source/platform/MemoryCoordinator.h (right): https://codereview.chromium.org/2933503002/diff/100001/third_party/WebKit/Source/platform/MemoryCoordinator.h#newcode48 third_party/WebKit/Source/platform/MemoryCoordinator.h:48: // Returns true when available memory is low. On ...
3 years, 6 months ago (2017-06-19 08:22:26 UTC) #26
Yaron
lgtm
3 years, 6 months ago (2017-06-19 15:28:07 UTC) #27
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/2933503002/120001
3 years, 6 months ago (2017-06-20 04:46:27 UTC) #34
commit-bot: I haz the power
3 years, 6 months ago (2017-06-20 04:50:25 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/ee6d2bccc4bdd982803f7c475f61...

Powered by Google App Engine
This is Rietveld 408576698