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

Issue 6623059: Support mixed allocation in browser vs subprocesses... (Closed)

Created:
9 years, 9 months ago by jar (doing other things)
Modified:
9 years, 7 months ago
Reviewers:
Mike Belshe
CC:
chromium-reviews, brettw-cc_chromium.org, cpu_(ooo_6.6-7.5), eroman
Visibility:
Public.

Description

Support mixed allocation in browser vs subprocesses Continue to support selection of a browser allocator selection via the environment variable CHROME_ALLOCATOR, and also add CHROME_ALLOCATOR_2 that can select the allocator to use in subprocesses, such as a renderer. Temporarilly set the browser default to the default windows heap allocator, and the subprocess allocator to TCMalloc to help detect memory corruption in a cannary for a few days. Add minor cleanup (removing reserved word "override" etc.). r=mbelshe bug=74901 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77207

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -18 lines) Patch
M base/allocator/allocator.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A base/allocator/allocator_shim.h View 1 chunk +20 lines, -0 lines 0 comments Download
M base/allocator/allocator_shim.cc View 1 2 3 4 5 6 9 chunks +57 lines, -18 lines 0 comments Download
M chrome/browser/browser_main.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jar (doing other things)
9 years, 9 months ago (2011-03-07 21:59:04 UTC) #1
Mike Belshe
lgtm http://codereview.chromium.org/6623059/diff/1006/base/allocator/allocator_shim.cc File base/allocator/allocator_shim.cc (right): http://codereview.chromium.org/6623059/diff/1006/base/allocator/allocator_shim.cc#newcode290 base/allocator/allocator_shim.cc:290: getenv_s(&secondary_length, buffer, sizeof(buffer), secondary_name); nit: not sure if ...
9 years, 9 months ago (2011-03-07 22:37:16 UTC) #2
jar (doing other things)
9 years, 9 months ago (2011-03-07 22:45:07 UTC) #3
Changes per review by mbelshe.

http://codereview.chromium.org/6623059/diff/1006/base/allocator/allocator_shi...
File base/allocator/allocator_shim.cc (right):

http://codereview.chromium.org/6623059/diff/1006/base/allocator/allocator_shi...
base/allocator/allocator_shim.cc:290: getenv_s(&secondary_length, buffer,
sizeof(buffer), secondary_name);
On 2011/03/07 22:37:16, Mike Belshe wrote:
> nit: not sure if this API provides null termination when size > buffer_size

Added safety net null termination (especially since it currently works, but
documentation incorrectly says stuff, like the result includes value AND
name!?!?).  It is hard to tell what "real API" is.

Thanks!!!

Powered by Google App Engine
This is Rietveld 408576698