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

Issue 2775423003: Add ownership edges between HostSharedBitmap and shared memory

Created:
3 years, 8 months ago by hajimehoshi
Modified:
3 years, 8 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org, wfh+watch_chromium.org, jam, gavinp+memory_chromium.org, darin-cc_chromium.org, tracing+reviews_chromium.org, cc-bugs_chromium.org, erikchen
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ownership edges between HostSharedBitmap and shared memory This CL adds ownership edges between memory dumps of modules that use shared memory and shared memory dump which was introduced at crrev.com/2654073002. This replaces existing CreateSharedGlobalAllocatorDump calls. This makes 'effective' size of shared-memory-related parts on memory-infra accurate. This CL is part of crrev.com/2535213002/ and there are still other modules that require shared-memory ownership edges. Design doc: https://docs.google.com/document/d/16Mi5_puxKgQ-9IX7ANfbji0WiqBCK3yrnJ0Qi2wa3w0/edit# BUG=604726 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add test files #

Patch Set 3 : Fix compile errors #

Total comments: 2

Patch Set 4 : Remove unneeded dumps #

Patch Set 5 : Add null checks for bitmaps #

Total comments: 3

Patch Set 6 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -32 lines) Patch
M base/BUILD.gn View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M base/memory/shared_memory.h View 1 2 1 chunk +15 lines, -2 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M base/memory/shared_memory_tracker.h View 1 2 3 4 5 3 chunks +16 lines, -2 lines 0 comments Download
M base/memory/shared_memory_tracker.cc View 1 2 3 4 chunks +44 lines, -5 lines 0 comments Download
M base/trace_event/process_memory_dump.h View 1 chunk +2 lines, -0 lines 0 comments Download
M base/trace_event/process_memory_dump.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/shared_bitmap.h View 3 chunks +12 lines, -1 line 0 comments Download
M cc/resources/shared_bitmap.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M cc/test/test_shared_bitmap_manager.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M content/child/child_shared_bitmap_manager.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/common/host_shared_bitmap_manager.cc View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 53 (29 generated)
hajimehoshi
PTAL https://codereview.chromium.org/2775423003/diff/1/content/common/host_shared_bitmap_manager.cc File content/common/host_shared_bitmap_manager.cc (left): https://codereview.chromium.org/2775423003/diff/1/content/common/host_shared_bitmap_manager.cc#oldcode179 content/common/host_shared_bitmap_manager.cc:179: pmd->CreateSharedGlobalAllocatorDump(guid); There are still CreateSharedGlobalAllocatorDump calls. I'm not ...
3 years, 8 months ago (2017-03-28 11:44:35 UTC) #3
hajimehoshi
ping
3 years, 8 months ago (2017-03-29 11:50:05 UTC) #17
Primiano Tucci (use gerrit)
ssid: thoughts? hajime: does the final result (trace link?) still make sense? is memory still ...
3 years, 8 months ago (2017-03-29 17:19:50 UTC) #18
hajimehoshi
https://codereview.chromium.org/2775423003/diff/40001/base/memory/shared_memory_tracker.cc File base/memory/shared_memory_tracker.cc (right): https://codereview.chromium.org/2775423003/diff/40001/base/memory/shared_memory_tracker.cc#newcode65 base/memory/shared_memory_tracker.cc:65: StringPrintf("shared_memory_in_process/%s", id_str.c_str()); On 2017/03/29 17:19:50, Primiano Tucci wrote: > ...
3 years, 8 months ago (2017-03-30 07:49:25 UTC) #19
hajimehoshi
On 2017/03/29 17:19:50, Primiano Tucci wrote: > ssid: thoughts? > hajime: does the final result ...
3 years, 8 months ago (2017-03-30 10:21:51 UTC) #24
hajimehoshi
On 2017/03/30 10:21:51, hajimehoshi wrote: > On 2017/03/29 17:19:50, Primiano Tucci wrote: > > ssid: ...
3 years, 8 months ago (2017-03-30 11:53:25 UTC) #28
danakj
On Thu, Mar 30, 2017 at 7:53 AM, <hajimehoshi@chromium.org> wrote: > On 2017/03/30 10:21:51, hajimehoshi ...
3 years, 8 months ago (2017-03-30 18:51:26 UTC) #31
ssid
Can we start this with introducing a boolean in the SharedMemory constructor that says |current_process_keeps_memory_alive|. ...
3 years, 8 months ago (2017-03-31 00:25:21 UTC) #32
hajimehoshi
On 2017/03/31 00:25:21, ssid wrote: > Can we start this with introducing a boolean in ...
3 years, 8 months ago (2017-03-31 06:43:21 UTC) #33
hajimehoshi
On 2017/03/30 18:51:26, danakj wrote: > On Thu, Mar 30, 2017 at 7:53 AM, <mailto:hajimehoshi@chromium.org> ...
3 years, 8 months ago (2017-03-31 06:56:37 UTC) #34
hajimehoshi
On 2017/03/31 06:43:21, hajimehoshi wrote: > On 2017/03/31 00:25:21, ssid wrote: > > Can we ...
3 years, 8 months ago (2017-04-04 04:43:04 UTC) #39
ssid
On 2017/03/31 06:43:21, hajimehoshi wrote: > On 2017/03/31 00:25:21, ssid wrote: > > Can we ...
3 years, 8 months ago (2017-04-04 06:36:54 UTC) #40
hajimehoshi
On 2017/04/04 06:36:54, ssid wrote: > On 2017/03/31 06:43:21, hajimehoshi wrote: > > On 2017/03/31 ...
3 years, 8 months ago (2017-04-04 10:12:55 UTC) #41
hajimehoshi
On 2017/04/04 10:12:55, hajimehoshi wrote: > On 2017/04/04 06:36:54, ssid wrote: > > On 2017/03/31 ...
3 years, 8 months ago (2017-04-04 11:27:21 UTC) #42
ssid
I don't see a no way to get around a big CL. Since it is ...
3 years, 8 months ago (2017-04-04 18:04:28 UTC) #43
hajimehoshi
On 2017/04/04 18:04:28, ssid wrote: > I don't see a no way to get around ...
3 years, 8 months ago (2017-04-05 09:23:58 UTC) #45
ericrk
On 2017/04/05 09:23:58, hajimehoshi wrote: > On 2017/04/04 18:04:28, ssid wrote: > > I don't ...
3 years, 8 months ago (2017-04-11 17:08:29 UTC) #46
hajimehoshi
On 2017/04/11 17:08:29, ericrk wrote: > On 2017/04/05 09:23:58, hajimehoshi wrote: > > On 2017/04/04 ...
3 years, 8 months ago (2017-04-13 08:39:03 UTC) #47
hajimehoshi
On 2017/04/13 08:39:03, hajimehoshi wrote: > On 2017/04/11 17:08:29, ericrk wrote: > > On 2017/04/05 ...
3 years, 8 months ago (2017-04-13 12:08:24 UTC) #48
ericrk
On 2017/04/13 12:08:24, hajimehoshi wrote: > On 2017/04/13 08:39:03, hajimehoshi wrote: > > On 2017/04/11 ...
3 years, 8 months ago (2017-04-13 18:31:53 UTC) #49
hajimehoshi
On 2017/04/13 18:31:53, ericrk wrote: > On 2017/04/13 12:08:24, hajimehoshi wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-14 08:11:10 UTC) #50
ericrk
On 2017/04/14 08:11:10, hajimehoshi wrote: > On 2017/04/13 18:31:53, ericrk wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-17 17:55:34 UTC) #51
hajimehoshi
On 2017/04/17 17:55:34, ericrk wrote: > On 2017/04/14 08:11:10, hajimehoshi wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-18 08:46:40 UTC) #52
hajimehoshi
3 years, 8 months ago (2017-04-19 07:06:59 UTC) #53
My current idea is, as ssid@ said, not to split the big CL
(https://codereview.chromium.org/2535213002/), and to replace all owner ship
edges once. I'll close this CL. Replacing once would be safe and be a mechanical
change after https://codereview.chromium.org/2819803002/. I'm now rebasing the
big CL, which requires some code change.

Powered by Google App Engine
This is Rietveld 408576698