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

Issue 815183002: Using the new MemoryPressureListener instead of the LowMemoryObserver when the enhanced memory mana… (Closed)

Created:
6 years ago by Mr4D (OOO till 08-26)
Modified:
5 years, 11 months ago
Reviewers:
James Cook, Nico, piman
CC:
chromium-reviews, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Using the new MemoryPressureListener instead of the LowMemoryObserver when the enhanced memory management is turned on This uses the new enhanced memory management - if the flag has turned it on. It will accelerate the tab discarding and use the |MemoryPressureListener| memory notification system. BUG=440532 TEST=OomPriorityManagerUsingPressureListenerTest.OomPressureListener Committed: https://crrev.com/cda33846b3070d2374853fa1c264ff134db847a0 Cr-Commit-Position: refs/heads/master@{#310524}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Added unit test for memory_pressure_observer_chromeos and addressed #

Total comments: 24

Patch Set 3 : Solved addressability problem #

Total comments: 6

Patch Set 4 : Addressed #

Total comments: 10

Patch Set 5 : Addressed #

Patch Set 6 : Fixed flaky unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -51 lines) Patch
M base/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M base/chromeos/memory_pressure_observer_chromeos.h View 1 2 3 4 5 5 chunks +25 lines, -3 lines 0 comments Download
M base/chromeos/memory_pressure_observer_chromeos.cc View 1 2 3 3 chunks +84 lines, -42 lines 0 comments Download
A base/chromeos/memory_pressure_observer_chromeos_unittest.cc View 1 2 3 4 5 1 chunk +161 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/memory/oom_priority_manager.h View 1 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/memory/oom_priority_manager.cc View 1 2 3 4 9 chunks +61 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/memory/oom_priority_manager_browsertest.cc View 1 2 3 4 5 4 chunks +66 lines, -0 lines 0 comments Download
A content/browser/memory_pressure_observer.cc View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A content/public/browser/memory_pressure_observer.h View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (17 generated)
Mr4D (OOO till 08-26)
This CL is not yet ready for submission since the question of where to get ...
6 years ago (2014-12-19 18:18:58 UTC) #2
James Cook
https://codereview.chromium.org/815183002/diff/1/base/chromeos/memory_pressure_observer_chromeos.cc File base/chromeos/memory_pressure_observer_chromeos.cc (right): https://codereview.chromium.org/815183002/diff/1/base/chromeos/memory_pressure_observer_chromeos.cc#newcode22 base/chromeos/memory_pressure_observer_chromeos.cc:22: const int kModerateMemoryPressureCooldown = 10000 / kMemoryPressureIntervalInMS; nit: I ...
6 years ago (2014-12-19 19:38:08 UTC) #3
Mr4D (OOO till 08-26)
Addressed and test added. Still not landeable. But please have another look! https://codereview.chromium.org/815183002/diff/1/base/chromeos/memory_pressure_observer_chromeos.cc File base/chromeos/memory_pressure_observer_chromeos.cc ...
6 years ago (2014-12-19 23:34:41 UTC) #4
Mr4D (OOO till 08-26)
Please have a look! + Piman for owners review of contents/* Many thanks in advance! ...
6 years ago (2014-12-20 00:12:45 UTC) #6
James Cook
https://codereview.chromium.org/815183002/diff/20001/base/chromeos/memory_pressure_observer_chromeos.cc File base/chromeos/memory_pressure_observer_chromeos.cc (right): https://codereview.chromium.org/815183002/diff/20001/base/chromeos/memory_pressure_observer_chromeos.cc#newcode17 base/chromeos/memory_pressure_observer_chromeos.cc:17: const int kMemoryPressureIntervalInMS = 1000; nit: I would rename ...
6 years ago (2014-12-20 00:27:47 UTC) #7
piman
https://codereview.chromium.org/815183002/diff/40001/content/browser/browser_thread_impl.cc File content/browser/browser_thread_impl.cc (right): https://codereview.chromium.org/815183002/diff/40001/content/browser/browser_thread_impl.cc#newcode486 content/browser/browser_thread_impl.cc:486: base::MemoryPressureObserverChromeOS* GetMemoryPressureObserver() { This doesn't match the new method ...
6 years ago (2014-12-20 02:53:15 UTC) #8
Mr4D (OOO till 08-26)
Please have another look! https://codereview.chromium.org/815183002/diff/20001/base/chromeos/memory_pressure_observer_chromeos.cc File base/chromeos/memory_pressure_observer_chromeos.cc (right): https://codereview.chromium.org/815183002/diff/20001/base/chromeos/memory_pressure_observer_chromeos.cc#newcode17 base/chromeos/memory_pressure_observer_chromeos.cc:17: const int kMemoryPressureIntervalInMS = 1000; ...
6 years ago (2014-12-20 03:01:05 UTC) #9
piman
https://codereview.chromium.org/815183002/diff/40001/content/public/browser/browser_thread.h File content/public/browser/browser_thread.h (right): https://codereview.chromium.org/815183002/diff/40001/content/public/browser/browser_thread.h#newcode160 content/public/browser/browser_thread.h:160: #endif On 2014/12/20 03:01:05, Mr4D (OOO till Jan 6th) ...
6 years ago (2014-12-20 03:05:18 UTC) #10
piman
On 2014/12/20 03:05:18, piman (Very slow to review) wrote: > https://codereview.chromium.org/815183002/diff/40001/content/public/browser/browser_thread.h > File content/public/browser/browser_thread.h (right): ...
6 years ago (2014-12-20 03:09:25 UTC) #11
James Cook
LGTM with a few nits https://codereview.chromium.org/815183002/diff/60001/base/chromeos/memory_pressure_observer_chromeos.h File base/chromeos/memory_pressure_observer_chromeos.h (right): https://codereview.chromium.org/815183002/diff/60001/base/chromeos/memory_pressure_observer_chromeos.h#newcode9 base/chromeos/memory_pressure_observer_chromeos.h:9: #include "base/gtest_prod_util.h" Are you ...
5 years, 11 months ago (2015-01-05 18:41:19 UTC) #12
Mr4D (OOO till 08-26)
Addressed. Piman, please have another look! https://codereview.chromium.org/815183002/diff/40001/content/public/browser/browser_thread.h File content/public/browser/browser_thread.h (right): https://codereview.chromium.org/815183002/diff/40001/content/public/browser/browser_thread.h#newcode160 content/public/browser/browser_thread.h:160: #endif Done that ...
5 years, 11 months ago (2015-01-06 22:22:06 UTC) #13
piman
LGTM for content/
5 years, 11 months ago (2015-01-07 21:25:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/815183002/80001
5 years, 11 months ago (2015-01-07 21:33:44 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/33772)
5 years, 11 months ago (2015-01-07 21:42:12 UTC) #18
Mr4D (OOO till 08-26)
Thakis, could you please do an OWNERS review for the base/BUILD files? Thanks!
5 years, 11 months ago (2015-01-07 21:49:28 UTC) #20
Nico
base build files lgtm
5 years, 11 months ago (2015-01-07 22:49:35 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/815183002/100001
5 years, 11 months ago (2015-01-07 23:10:03 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/12540)
5 years, 11 months ago (2015-01-07 23:52:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/815183002/120001
5 years, 11 months ago (2015-01-08 00:11:48 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/815183002/140001
5 years, 11 months ago (2015-01-08 00:23:41 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/12581)
5 years, 11 months ago (2015-01-08 01:41:46 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/815183002/160001
5 years, 11 months ago (2015-01-08 16:25:57 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years, 11 months ago (2015-01-08 17:29:12 UTC) #40
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 17:29:56 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cda33846b3070d2374853fa1c264ff134db847a0
Cr-Commit-Position: refs/heads/master@{#310524}

Powered by Google App Engine
This is Rietveld 408576698