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

Issue 1009203004: content: Add DeletedDiscardableSharedMemory IPC. (Closed)

Created:
5 years, 9 months ago by reveman
Modified:
5 years, 9 months ago
Reviewers:
Avi (use Gerrit), nasko
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: Add DeletedDiscardableSharedMemory IPC. This provides a mechanism for child processes to notify the browser process that a discardable memory segment has been deleted. This reduces the chance of the browser unnecessarily purging a memory segment that is still useful and it makes total discardable memory usage stats in the browser process better match current usage by all child processes. BUG= TEST=content_unittests --gtest_filter=DiscardableSharedMemoryHeapTest.DeletedCallback, content_browsertests --gtest_filter=ChildDiscardableSharedMemoryManagerBrowserTest.ReleaseFreeMemory Committed: https://crrev.com/1500e1a7a2445bb9bddc9e492db6c988dfbc815f Cr-Commit-Position: refs/heads/master@{#320848}

Patch Set 1 #

Patch Set 2 : avoid updating trace counter and crash key unless bytes allocated changed #

Total comments: 2

Patch Set 3 : int32 -> int32_t #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -82 lines) Patch
M content/browser/renderer_host/render_message_filter.h View 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 3 chunks +11 lines, -3 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 5 chunks +21 lines, -7 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager_browsertest.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M content/common/child_process_messages.h View 2 chunks +8 lines, -1 line 0 comments Download
M content/common/discardable_shared_memory_heap.h View 4 chunks +8 lines, -3 lines 0 comments Download
M content/common/discardable_shared_memory_heap.cc View 3 chunks +11 lines, -7 lines 0 comments Download
M content/common/discardable_shared_memory_heap_perftest.cc View 2 chunks +5 lines, -1 line 0 comments Download
M content/common/discardable_shared_memory_heap_unittest.cc View 11 chunks +37 lines, -8 lines 0 comments Download
M content/common/host_discardable_shared_memory_manager.h View 1 2 3 5 chunks +36 lines, -10 lines 0 comments Download
M content/common/host_discardable_shared_memory_manager.cc View 1 2 3 15 chunks +112 lines, -37 lines 0 comments Download
M content/common/host_discardable_shared_memory_manager_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
reveman
5 years, 9 months ago (2015-03-16 13:03:18 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/1009203004/diff/20001/content/common/host_discardable_shared_memory_manager.h File content/common/host_discardable_shared_memory_manager.h (right): https://codereview.chromium.org/1009203004/diff/20001/content/common/host_discardable_shared_memory_manager.h#newcode22 content/common/host_discardable_shared_memory_manager.h:22: typedef int32 DiscardableSharedMemoryId; First, int32_t, per the deprecation notice ...
5 years, 9 months ago (2015-03-16 16:58:21 UTC) #3
reveman
https://codereview.chromium.org/1009203004/diff/20001/content/common/host_discardable_shared_memory_manager.h File content/common/host_discardable_shared_memory_manager.h (right): https://codereview.chromium.org/1009203004/diff/20001/content/common/host_discardable_shared_memory_manager.h#newcode22 content/common/host_discardable_shared_memory_manager.h:22: typedef int32 DiscardableSharedMemoryId; On 2015/03/16 16:58:21, Avi wrote: > ...
5 years, 9 months ago (2015-03-16 18:30:55 UTC) #4
Avi (use Gerrit)
On 2015/03/16 18:30:55, reveman wrote: > https://codereview.chromium.org/1009203004/diff/20001/content/common/host_discardable_shared_memory_manager.h > File content/common/host_discardable_shared_memory_manager.h (right): > > https://codereview.chromium.org/1009203004/diff/20001/content/common/host_discardable_shared_memory_manager.h#newcode22 > ...
5 years, 9 months ago (2015-03-16 19:11:44 UTC) #5
reveman
+nasko for content/common/child_process_messages.h avi, does latest patch look ok?
5 years, 9 months ago (2015-03-16 21:56:33 UTC) #7
Avi (use Gerrit)
On 2015/03/16 21:56:33, reveman wrote: > +nasko for content/common/child_process_messages.h > > avi, does latest patch ...
5 years, 9 months ago (2015-03-16 22:51:11 UTC) #8
nasko
IPC LGTM
5 years, 9 months ago (2015-03-16 23:02:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1009203004/60001
5 years, 9 months ago (2015-03-16 23:46:58 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-17 02:31:48 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 02:32:24 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1500e1a7a2445bb9bddc9e492db6c988dfbc815f
Cr-Commit-Position: refs/heads/master@{#320848}

Powered by Google App Engine
This is Rietveld 408576698