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

Issue 2867193004: Recode shared memory usage on Windows, macOS and NaCl (Closed)

Created:
3 years, 7 months ago by hajimehoshi
Modified:
3 years, 6 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, mac-reviews_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org, Primiano Tucci (use gerrit), erikchen
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Recode shared memory usage on Windows, macOS and NaCl Now that shared memory's unique ids are portable, shared memory usages can be counted. This CL inserts incrementing and decrementing shared memory usages when map/unmapped. BUG=604726 Review-Url: https://codereview.chromium.org/2867193004 Cr-Commit-Position: refs/heads/master@{#474930} Committed: https://chromium.googlesource.com/chromium/src/+/e80c576c7bdcd567ba96a4e1ceb9f845dcf1168e

Patch Set 1 #

Patch Set 2 : impl #

Patch Set 3 : (rebase) #

Patch Set 4 : Move decrementing before unmapping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -9 lines) Patch
M base/BUILD.gn View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M base/memory/shared_memory_mac.cc View 1 2 3 4 chunks +3 lines, -1 line 0 comments Download
M base/memory/shared_memory_nacl.cc View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M base/memory/shared_memory_posix.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/memory/shared_memory_win.cc View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
hajimehoshi
PTAL
3 years, 7 months ago (2017-05-25 06:21:58 UTC) #4
danakj
LGTM
3 years, 6 months ago (2017-05-25 15:28:26 UTC) #9
Primiano Tucci (use gerrit)
I'd probably move the Decrement calls before the various munmap (or declination). That will avoid ...
3 years, 6 months ago (2017-05-25 18:06:23 UTC) #11
danakj
That sounds good to me too. On Thu, May 25, 2017 at 2:06 PM, <primiano@chromium.org> ...
3 years, 6 months ago (2017-05-25 18:27:45 UTC) #12
hajimehoshi
Thank you! Done. On 2017/05/25 18:27:45, danakj wrote: > That sounds good to me too. ...
3 years, 6 months ago (2017-05-26 04:02:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2867193004/60001
3 years, 6 months ago (2017-05-26 04:04:08 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-05-26 05:49:56 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e80c576c7bdcd567ba96a4e1ceb9...

Powered by Google App Engine
This is Rietveld 408576698