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

Issue 2713553002: mac: Periodically shim new malloc zones immediately after startup. (Closed)

Created:
3 years, 10 months ago by erikchen
Modified:
3 years, 8 months ago
CC:
chromium-reviews, Dai Mikurube (NOT FULLTIME), vmpstr+watch_chromium.org, wfh+watch_chromium.org, jam, darin-cc_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: Periodically shim new malloc zones immediately after startup. On macOS, libraries lazily make malloc zones. There are no notifications when this happens. This CL adds polling with an exponential backoff to check for the existence of new malloc zones, stopping after 1 minute. This CL only has an affect when heap profiling is enabled. BUG=693237 Review-Url: https://codereview.chromium.org/2713553002 Cr-Original-Commit-Position: refs/heads/master@{#461836} Committed: https://chromium.googlesource.com/chromium/src/+/245f17559f973bb5a207c063d982c0bab0ec1c0b Review-Url: https://codereview.chromium.org/2713553002 Cr-Commit-Position: refs/heads/master@{#461924} Committed: https://chromium.googlesource.com/chromium/src/+/486716780e8483c70c50c1fc50ecca4112efb5aa

Patch Set 1 #

Patch Set 2 : Comments from primiano. #

Patch Set 3 : Rebase. #

Total comments: 5

Patch Set 4 : Rebase, comments from mark. #

Patch Set 5 : Comments from primiano. #

Total comments: 2

Patch Set 6 : compile errors. #

Patch Set 7 : Add test. #

Patch Set 8 : Compile erorr. #

Patch Set 9 : clang format. #

Patch Set 10 : disable test on asan. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -38 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M base/allocator/allocator_interception_mac.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -0 lines 0 comments Download
M base/allocator/allocator_interception_mac.mm View 1 2 3 4 5 6 3 chunks +78 lines, -38 lines 0 comments Download
A base/allocator/allocator_interception_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 1 chunk +64 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (44 generated)
erikchen
primiano: Please review.
3 years, 10 months ago (2017-02-22 01:10:44 UTC) #3
erikchen
mark, avi: Please review.
3 years, 10 months ago (2017-02-22 01:11:42 UTC) #5
Primiano Tucci (use gerrit)
On 2017/02/22 at 01:11:42, erikchen wrote: > mark, avi: Please review. Can we do this ...
3 years, 10 months ago (2017-02-22 12:35:02 UTC) #9
Avi (use Gerrit)
On 2017/02/22 01:11:42, erikchen wrote: > mark, avi: Please review. Your Mac trybot seems unhappy. ...
3 years, 10 months ago (2017-02-22 16:47:23 UTC) #10
erikchen
On 2017/02/22 16:47:23, Avi wrote: > On 2017/02/22 01:11:42, erikchen wrote: > > mark, avi: ...
3 years, 10 months ago (2017-02-23 00:07:43 UTC) #15
erikchen
On 2017/02/22 12:35:02, Primiano Tucci wrote: > On 2017/02/22 at 01:11:42, erikchen wrote: > > ...
3 years, 10 months ago (2017-02-23 00:08:11 UTC) #16
Mark Mentovai
LGTM otherwise https://codereview.chromium.org/2713553002/diff/40001/base/allocator/allocator_interception_mac.h File base/allocator/allocator_interception_mac.h (right): https://codereview.chromium.org/2713553002/diff/40001/base/allocator/allocator_interception_mac.h#newcode39 base/allocator/allocator_interception_mac.h:39: // Periodically checks for, and shims new ...
3 years, 10 months ago (2017-02-23 02:26:17 UTC) #17
Primiano Tucci (use gerrit)
LGTM % mark comments https://codereview.chromium.org/2713553002/diff/40001/base/allocator/allocator_interception_mac.h File base/allocator/allocator_interception_mac.h (right): https://codereview.chromium.org/2713553002/diff/40001/base/allocator/allocator_interception_mac.h#newcode40 base/allocator/allocator_interception_mac.h:40: BASE_EXPORT void PeriodicallyShimNewMallocZones(); On 2017/02/23 ...
3 years, 10 months ago (2017-02-23 14:41:57 UTC) #20
Primiano Tucci (use gerrit)
This issue is marked closed but not landed. was it intended or is the CQ ...
3 years, 9 months ago (2017-02-28 11:59:52 UTC) #22
erikchen
intentional On Tue, Feb 28, 2017 at 3:59 AM, <primiano@chromium.org> wrote: > This issue is ...
3 years, 9 months ago (2017-02-28 17:53:20 UTC) #23
erikchen
https://codereview.chromium.org/2713553002/diff/40001/base/allocator/allocator_interception_mac.h File base/allocator/allocator_interception_mac.h (right): https://codereview.chromium.org/2713553002/diff/40001/base/allocator/allocator_interception_mac.h#newcode39 base/allocator/allocator_interception_mac.h:39: // Periodically checks for, and shims new malloc zones. ...
3 years, 8 months ago (2017-04-03 06:44:42 UTC) #26
Primiano Tucci (use gerrit)
thanks, still LGTM https://codereview.chromium.org/2713553002/diff/80001/base/allocator/allocator_interception_mac.mm File base/allocator/allocator_interception_mac.mm (right): https://codereview.chromium.org/2713553002/diff/80001/base/allocator/allocator_interception_mac.mm#newcode34 base/allocator/allocator_interception_mac.mm:34: #include "base/command_line.h" nit: you don't need ...
3 years, 8 months ago (2017-04-03 08:03:24 UTC) #31
Mark Mentovai
LGTM otherwise https://codereview.chromium.org/2713553002/diff/80001/content/browser/browser_main_loop.cc File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2713553002/diff/80001/content/browser/browser_main_loop.cc#newcode865 content/browser/browser_main_loop.cc:865: if (CommandLine::InitializedForCurrentProcess() && Untested code. Sad compiler.
3 years, 8 months ago (2017-04-03 12:10:24 UTC) #32
erikchen
avi: Please review content.
3 years, 8 months ago (2017-04-04 15:47:08 UTC) #49
Avi (use Gerrit)
lgtm stamp
3 years, 8 months ago (2017-04-04 19:43:33 UTC) #50
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/2713553002/160001
3 years, 8 months ago (2017-04-04 19:44:56 UTC) #53
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/245f17559f973bb5a207c063d982c0bab0ec1c0b
3 years, 8 months ago (2017-04-04 21:08:14 UTC) #56
findit-for-me
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/2802493002/ by findit-for-me@appspot.gserviceaccount.com. ...
3 years, 8 months ago (2017-04-04 22:48:17 UTC) #57
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/2713553002/180001
3 years, 8 months ago (2017-04-04 23:03:51 UTC) #61
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 00:57:17 UTC) #64
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/486716780e8483c70c50c1fc50ec...

Powered by Google App Engine
This is Rietveld 408576698