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

Issue 981403002: content: Release all free discardable memory when idle. (Closed)

Created:
5 years, 9 months ago by reveman
Modified:
5 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

content: Release all free discardable memory when idle. This adds better tracking of free discardable memory in child processes and the ability to release the memory without having the browser process purge the memory. BUG=460995 TEST=content_unittests --gtest_filter=DiscardableSharedMemoryHeapTest.* Committed: https://crrev.com/2ce0228408e0e97653af9ac08b297ce016784d88 Cr-Commit-Position: refs/heads/master@{#319779}

Patch Set 1 #

Patch Set 2 : v2 #

Patch Set 3 : v3 #

Patch Set 4 : add missing include #

Total comments: 6

Patch Set 5 : use ScopedVector and reintroduce size arg to Grow #

Patch Set 6 : add const modifier to some members of ScopedMemorySegment #

Patch Set 7 : disable DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -84 lines) Patch
M chrome/common/crash_keys.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 1 2 3 4 5 6 8 chunks +42 lines, -33 lines 0 comments Download
M content/common/discardable_shared_memory_heap.h View 1 2 3 4 5 2 chunks +38 lines, -9 lines 0 comments Download
M content/common/discardable_shared_memory_heap.cc View 1 2 3 4 7 chunks +91 lines, -32 lines 0 comments Download
M content/common/discardable_shared_memory_heap_unittest.cc View 1 2 3 4 7 chunks +50 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
reveman
5 years, 9 months ago (2015-03-07 22:43:58 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/981403002/diff/60001/content/common/discardable_shared_memory_heap.cc File content/common/discardable_shared_memory_heap.cc (right): https://codereview.chromium.org/981403002/diff/60001/content/common/discardable_shared_memory_heap.cc#newcode61 content/common/discardable_shared_memory_heap.cc:61: DCHECK_EQ(num_free_blocks_, 0u); Expected value as the first parameter. https://codereview.chromium.org/981403002/diff/60001/content/common/discardable_shared_memory_heap.h ...
5 years, 9 months ago (2015-03-09 16:03:37 UTC) #3
Avi (use Gerrit)
https://codereview.chromium.org/981403002/diff/60001/content/common/discardable_shared_memory_heap.h File content/common/discardable_shared_memory_heap.h (right): https://codereview.chromium.org/981403002/diff/60001/content/common/discardable_shared_memory_heap.h#newcode112 content/common/discardable_shared_memory_heap.h:112: std::vector<linked_ptr<ScopedMemorySegment>> memory_segments_; On 2015/03/09 16:03:37, Avi wrote: > Why ...
5 years, 9 months ago (2015-03-09 17:21:25 UTC) #4
reveman
PTAL https://codereview.chromium.org/981403002/diff/60001/content/common/discardable_shared_memory_heap.h File content/common/discardable_shared_memory_heap.h (right): https://codereview.chromium.org/981403002/diff/60001/content/common/discardable_shared_memory_heap.h#newcode52 content/common/discardable_shared_memory_heap.h:52: // |shared_memory| must be aligned to the block ...
5 years, 9 months ago (2015-03-09 18:08:26 UTC) #5
Avi (use Gerrit)
LGTM
5 years, 9 months ago (2015-03-09 18:48:54 UTC) #6
reveman
+rsesek for chrome/common/crash_keys.cc
5 years, 9 months ago (2015-03-09 18:59:18 UTC) #8
Robert Sesek
LGTM
5 years, 9 months ago (2015-03-09 19:00:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981403002/100001
5 years, 9 months ago (2015-03-09 19:04:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981403002/120001
5 years, 9 months ago (2015-03-09 21:08:38 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-09 23:57:34 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 23:58:06 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2ce0228408e0e97653af9ac08b297ce016784d88
Cr-Commit-Position: refs/heads/master@{#319779}

Powered by Google App Engine
This is Rietveld 408576698