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

Issue 278923002: Use the new ScopedMachVM class and the MACH_LOG family of logging macros (Closed)

Created:
6 years, 7 months ago by Mark Mentovai
Modified:
6 years, 7 months ago
Reviewers:
Robert Sesek, sky
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, gavinp+memory_chromium.org
Visibility:
Public.

Description

Use the new ScopedMachVM class and the MACH_LOG family of logging macros where it makes sense to do so in existing code. This migration shook out a couple of bugs in mach_logging.h carried over from mac_logging.h (fixed there too). R=rsesek@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269829

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : Rebase onto r269793 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -188 lines) Patch
M base/base.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M base/mac/mac_logging.h View 1 2 3 4 3 chunks +11 lines, -3 lines 0 comments Download
M base/mac/mach_logging.h View 1 2 3 4 5 6 7 5 chunks +41 lines, -23 lines 0 comments Download
M base/mac/mach_logging.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M base/mac/scoped_mach_port.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M base/mac/scoped_mach_vm.h View 1 2 3 4 5 6 5 chunks +13 lines, -13 lines 0 comments Download
M base/mac/scoped_mach_vm.cc View 1 2 3 4 5 6 1 chunk +8 lines, -8 lines 0 comments Download
M base/memory/discardable_memory_mac.cc View 1 2 3 4 5 6 7 8 4 chunks +42 lines, -27 lines 0 comments Download
M base/process/memory_mac.mm View 1 2 3 5 chunks +9 lines, -6 lines 0 comments Download
M base/process/process_metrics_mac.cc View 1 2 3 7 chunks +27 lines, -42 lines 0 comments Download
M base/threading/platform_thread_mac.mm View 6 chunks +22 lines, -21 lines 0 comments Download
M base/time/time_mac.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/mac/install_from_dmg.mm View 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/mach_broker_mac.mm View 1 2 9 chunks +32 lines, -38 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Mark Mentovai
https://codereview.chromium.org/278923002/diff/60001/content/browser/mach_broker_mac.mm File content/browser/mach_broker_mac.mm (right): https://codereview.chromium.org/278923002/diff/60001/content/browser/mach_broker_mac.mm#newcode98 content/browser/mach_broker_mac.mm:98: while ((kr = mach_msg(&msg.header, options, 0, sizeof(msg), server_port_, It ...
6 years, 7 months ago (2014-05-09 19:06:20 UTC) #1
Robert Sesek
https://codereview.chromium.org/278923002/diff/60001/base/memory/discardable_memory_mac.cc File base/memory/discardable_memory_mac.cc (right): https://codereview.chromium.org/278923002/diff/60001/base/memory/discardable_memory_mac.cc#newcode48 base/memory/discardable_memory_mac.cc:48: memory_.reset(address, mach_vm_round_page(size_)); You don't want to round the size ...
6 years, 7 months ago (2014-05-09 20:40:00 UTC) #2
Mark Mentovai
Maybe I should move bpoop to use the libdispatch handler too, except then I’d have ...
6 years, 7 months ago (2014-05-09 21:09:34 UTC) #3
Robert Sesek
LGTM On 2014/05/09 21:09:34, Mark Mentovai wrote: > Maybe I should move bpoop to use ...
6 years, 7 months ago (2014-05-09 21:14:17 UTC) #4
Mark Mentovai
I added a comment there and in process_metrics_mac.cc, the other spot with a vm_region call.
6 years, 7 months ago (2014-05-09 21:28:43 UTC) #5
Mark Mentovai
sky for content/browser
6 years, 7 months ago (2014-05-09 22:08:44 UTC) #6
sky
LGTM
6 years, 7 months ago (2014-05-09 22:34:38 UTC) #7
Mark Mentovai
Committed patchset #5 manually as r269483 (presubmit successful).
6 years, 7 months ago (2014-05-10 02:12:55 UTC) #8
Mark Mentovai
This broke iOS and a few attempts at fixing it later, I just backed the ...
6 years, 7 months ago (2014-05-10 04:10:36 UTC) #9
Mark Mentovai
This one should be better on iOS. You can look at the diffs from patch ...
6 years, 7 months ago (2014-05-10 19:14:02 UTC) #10
Robert Sesek
Diffs from PS6 to PS8 LGTM.
6 years, 7 months ago (2014-05-12 15:47:05 UTC) #11
Mark Mentovai
6 years, 7 months ago (2014-05-12 18:50:10 UTC) #12
Message was sent while issue was closed.
Committed patchset #9 manually as r269829 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698