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

Issue 10239012: Route calls to tcmalloc MallocExtension through allocator agnostic interface (Closed)

Created:
8 years, 7 months ago by jamesr
Modified:
8 years, 7 months ago
CC:
chromium-reviews, erikwright (departed), jam, mihaip+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Route calls to tcmalloc MallocExtension through allocator agnostic interface Our various libraries should not be picking or depending on a particular allocator choice - that should be an application level choice. This creates a generic AllocatorExtension interface that can optionally be backed by entry points to a particular allocator's MallocExtension interface if the application chooses to. BUG=125003 TEST=compiles, chrome://tcmalloc works Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134434

Patch Set 1 #

Patch Set 2 : moar compile on win_rel #

Patch Set 3 : separate allocator_extension into own static library, add comments to allocator_extension.h #

Total comments: 8

Patch Set 4 : add BASE_EXPORT and change 0->NULL #

Patch Set 5 : make linux buildfix #

Patch Set 6 : extra level of indirection for allocator_unittests on windows #

Patch Set 7 : fix base_nacl_win64 #

Total comments: 3

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -27 lines) Patch
M base/allocator/allocator.gyp View 1 2 3 4 5 6 7 3 chunks +33 lines, -0 lines 0 comments Download
A base/allocator/allocator_extension.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A base/allocator/allocator_extension.cc View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A base/allocator/allocator_extension_thunks.h View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A base/allocator/allocator_extension_thunks.cc View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
M base/allocator/allocator_shim.cc View 1 2 3 4 5 6 7 3 chunks +13 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/memory_purger.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/renderer/chrome_render_process_observer.cc View 3 chunks +3 lines, -5 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 chunks +20 lines, -0 lines 0 comments Download
M content/browser/tcmalloc_internals_request_job.cc View 2 chunks +2 lines, -5 lines 0 comments Download
M content/common/child_thread.cc View 3 chunks +2 lines, -5 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jamesr
I believe this is ready for review. The one thing I'm not sure about is ...
8 years, 7 months ago (2012-04-26 21:15:53 UTC) #1
jam
On 2012/04/26 21:15:53, jamesr wrote: > I believe this is ready for review. The one ...
8 years, 7 months ago (2012-04-26 21:28:20 UTC) #2
willchan no longer on Chromium
http://codereview.chromium.org/10239012/diff/9001/base/allocator/allocator_extension.cc File base/allocator/allocator_extension.cc (right): http://codereview.chromium.org/10239012/diff/9001/base/allocator/allocator_extension.cc#newcode12 base/allocator/allocator_extension.cc:12: static GetStatsFunction* g_get_stats_function = 0; nit: s/0/NULL/. I've never ...
8 years, 7 months ago (2012-04-26 22:08:48 UTC) #3
jamesr
On 2012/04/26 22:08:48, willchan wrote: > http://codereview.chromium.org/10239012/diff/9001/base/allocator/allocator_extension.cc > File base/allocator/allocator_extension.cc (right): > > http://codereview.chromium.org/10239012/diff/9001/base/allocator/allocator_extension.cc#newcode12 > ...
8 years, 7 months ago (2012-04-27 00:00:04 UTC) #4
willchan no longer on Chromium
On Thu, Apr 26, 2012 at 5:00 PM, <jamesr@chromium.org> wrote: > On 2012/04/26 22:08:48, willchan ...
8 years, 7 months ago (2012-04-27 00:06:10 UTC) #5
jamesr
I have no clue wtf is going on with base_nacl_win64, still need some help there. ...
8 years, 7 months ago (2012-04-27 05:37:18 UTC) #6
willchan no longer on Chromium
lgtm http://codereview.chromium.org/10239012/diff/34001/base/allocator/allocator_extension_thunks.cc File base/allocator/allocator_extension_thunks.cc (right): http://codereview.chromium.org/10239012/diff/34001/base/allocator/allocator_extension_thunks.cc#newcode13 base/allocator/allocator_extension_thunks.cc:13: // This slightly odd translation unit exists because ...
8 years, 7 months ago (2012-04-27 19:51:51 UTC) #7
jam
lgtm
8 years, 7 months ago (2012-04-27 21:04:26 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/10239012/32003
8 years, 7 months ago (2012-04-27 23:32:49 UTC) #9
commit-bot: I haz the power
Try job failure for 10239012-32003 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 7 months ago (2012-04-27 23:58:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/10239012/32003
8 years, 7 months ago (2012-04-28 00:03:18 UTC) #11
commit-bot: I haz the power
8 years, 7 months ago (2012-04-28 02:56:46 UTC) #12
Change committed as 134434

Powered by Google App Engine
This is Rietveld 408576698