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

Issue 2727463002: mac: Several minor fixes to allocator shim. (Closed)

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

Description

mac: Several minor fixes to allocator shim. This CL: * Ensures that no allocator shim state is carried over between tests. * Updates malloc zone interception logic to reflect the fact that the default malloc zone is not included in malloc_get_all_zones. * Turn MallocZoneFunctions into POD. Update g_malloc_zones to be an array rather than a pointer. BUG=693237 Review-Url: https://codereview.chromium.org/2727463002 Cr-Commit-Position: refs/heads/master@{#459964} Committed: https://chromium.googlesource.com/chromium/src/+/2f9bf057e1227bcee1d24e4b619894233946d26c

Patch Set 1 #

Patch Set 2 : Clean up. #

Patch Set 3 : More test fixes. #

Patch Set 4 : Clean up. #

Patch Set 5 : Treat MallocZoneFunctions as POD. #

Total comments: 10

Patch Set 6 : Rebase. #

Patch Set 7 : Comments from primiano. #

Patch Set 8 : compile erorr. #

Patch Set 9 : more compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -73 lines) Patch
M base/allocator/allocator_interception_mac.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M base/allocator/allocator_interception_mac.mm View 1 2 3 4 5 6 7 8 chunks +62 lines, -34 lines 0 comments Download
M base/allocator/allocator_shim.cc View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M base/allocator/allocator_shim_override_mac_symbols.h View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M base/allocator/allocator_shim_unittest.cc View 1 2 3 3 chunks +16 lines, -6 lines 0 comments Download
M base/allocator/malloc_zone_functions_mac.h View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -16 lines 0 comments Download
M base/allocator/malloc_zone_functions_mac.cc View 1 2 3 4 5 6 7 5 chunks +13 lines, -9 lines 0 comments Download
M base/allocator/malloc_zone_functions_mac_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/debug/thread_heap_usage_tracker_unittest.cc View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M base/process/memory_unittest.cc View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download
M chrome/installer/setup/memory_unittest.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (36 generated)
erikchen
primiano, mark: Please review.
3 years, 9 months ago (2017-03-01 04:50:50 UTC) #19
Primiano Tucci (use gerrit)
Just have a doubt on the double-dep on allocator_shim.cc . Everything else LGTM % some ...
3 years, 9 months ago (2017-03-21 19:39:24 UTC) #20
Mark Mentovai
LGTM, but a big “no” vote on binary patching system libraries, which you allude to ...
3 years, 9 months ago (2017-03-22 17:00:07 UTC) #21
erikchen
https://codereview.chromium.org/2727463002/diff/80001/base/allocator/allocator_interception_mac.mm File base/allocator/allocator_interception_mac.mm (right): https://codereview.chromium.org/2727463002/diff/80001/base/allocator/allocator_interception_mac.mm#newcode366 base/allocator/allocator_interception_mac.mm:366: ChromeMallocZone* default_zone = On 2017/03/21 19:39:23, Primiano Tucci wrote: ...
3 years, 9 months ago (2017-03-24 21:59:03 UTC) #31
erikchen
On 2017/03/22 17:00:07, Mark Mentovai wrote: > LGTM, but a big “no” vote on binary ...
3 years, 9 months ago (2017-03-24 21:59:16 UTC) #33
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/2727463002/160001
3 years, 9 months ago (2017-03-24 22:00:01 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/394477)
3 years, 9 months ago (2017-03-24 22:09:21 UTC) #39
erikchen
sky: Please review chrome/
3 years, 8 months ago (2017-03-27 21:19:08 UTC) #41
sky
LGTM
3 years, 8 months ago (2017-03-27 23:47:06 UTC) #42
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/2727463002/160001
3 years, 8 months ago (2017-03-27 23:49:24 UTC) #44
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 01:12:13 UTC) #47
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/2f9bf057e1227bcee1d24e4b6198...

Powered by Google App Engine
This is Rietveld 408576698