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

Issue 448173002: Re-land: base: Introduce an explicit call for reducing emulated discardable memory usage. (Closed)

Created:
6 years, 4 months ago by reveman
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, gavinp+memory_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

Re-land: base: Introduce an explicit call for reducing emulated discardable memory usage. This removes the use of memory pressure signals from discardable memory system and instead introduces an explicit call for reducing emulated discardable memory that the renderer can call when all widgets are hidden until we have a better mechanism in place. BUG=398087 TEST=base_unittests,content_browsertests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289127

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove the notion of memory pressure completely #

Patch Set 3 : mac build fix #

Patch Set 4 : Add missing call to RenderThreadImpl::Shutdown #

Patch Set 5 : disable EmulatedDiscardableMemoryDiscardedWhenWidgetsHidden with lsan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -193 lines) Patch
M base/memory/discardable_memory.h View 1 chunk +0 lines, -8 lines 0 comments Download
M base/memory/discardable_memory_android.cc View 1 2 2 chunks +1 line, -14 lines 0 comments Download
M base/memory/discardable_memory_emulated.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M base/memory/discardable_memory_emulated.cc View 1 2 chunks +5 lines, -11 lines 0 comments Download
M base/memory/discardable_memory_linux.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M base/memory/discardable_memory_mac.cc View 1 2 2 chunks +1 line, -15 lines 0 comments Download
M base/memory/discardable_memory_manager.h View 1 6 chunks +4 lines, -32 lines 0 comments Download
M base/memory/discardable_memory_manager.cc View 1 5 chunks +6 lines, -50 lines 0 comments Download
M base/memory/discardable_memory_manager_unittest.cc View 1 11 chunks +13 lines, -28 lines 0 comments Download
M base/memory/discardable_memory_unittest.cc View 3 chunks +1 line, -9 lines 0 comments Download
M base/memory/discardable_memory_win.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 4 chunks +10 lines, -4 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 2 3 4 2 chunks +60 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
reveman
Alternative patch. I'll update the description if this looks good. Removes memory pressure signals from ...
6 years, 4 months ago (2014-08-07 15:24:29 UTC) #1
Mark Mentovai
This design is better.
6 years, 4 months ago (2014-08-07 15:30:27 UTC) #2
reveman
I've update the patch. I think this is ready to land. PTAL.
6 years, 4 months ago (2014-08-08 08:23:17 UTC) #3
jochen (gone - plz use gerrit)
content/ lgtm
6 years, 4 months ago (2014-08-11 14:33:00 UTC) #4
Mark Mentovai
LGTM
6 years, 4 months ago (2014-08-11 14:51:19 UTC) #5
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 4 months ago (2014-08-11 15:35:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/448173002/20001
6 years, 4 months ago (2014-08-11 15:37:16 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-11 17:44:24 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 17:47:19 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/4464) ios_rel_device on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device/builds/4477) ios_rel_device_ninja ...
6 years, 4 months ago (2014-08-11 17:47:20 UTC) #10
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 4 months ago (2014-08-11 17:56:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/448173002/40001
6 years, 4 months ago (2014-08-11 17:57:50 UTC) #12
commit-bot: I haz the power
Change committed as 288793
6 years, 4 months ago (2014-08-11 21:09:43 UTC) #13
tapted
A revert of this CL has been created in https://codereview.chromium.org/458343003/ by tapted@chromium.org. The reason for ...
6 years, 4 months ago (2014-08-12 03:53:01 UTC) #14
reveman
FYI, I'm going to re-land this with EmulatedDiscardableMemoryDiscardedWhenWidgetsHidden test disabled when using lsan as it ...
6 years, 4 months ago (2014-08-12 16:13:12 UTC) #15
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 4 months ago (2014-08-12 16:13:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/448173002/80001
6 years, 4 months ago (2014-08-12 16:14:31 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-12 20:49:10 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 00:06:55 UTC) #19
Message was sent while issue was closed.
Change committed as 289127

Powered by Google App Engine
This is Rietveld 408576698