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

Issue 455037: Make no-tcmalloc (really, non-base/allocator) builds work again,... (Closed)

Created:
11 years ago by dank
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, darin (slow to review), ben+cc_chromium.org, jam, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make no-tcmalloc (really, non-base/allocator) builds work again, (i.e. this is a plain vanilla build used when layers like base/allocator are getting in the way of debugging) and make sure they use msvcrt rather than libcmt (libcmt is used to help shim malloc/free, but it gets in the way of valgrind doing the same thing). Sadly, this is now a gyp-time operation rather than a Configuration option. Had to remove hardcoded C prototype for _set_new_mode, as that caused link errors. Also add variables win_{release,debug}_{Optimization,RuntimeLibrary} to let the valgrind build override those settings. Fix calling convention on _set_new_mode to match the one in <new.h> BUG=none TEST=build with ~/.gyp/include.gypi set as described in comment in common.gypi, gclient runhooks, do release build, verify all exe's and dll's linked against msvcrt dll Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33719

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -32 lines) Patch
M base/allocator/generic_allocators.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M build/all.gyp View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M build/common.gypi View 1 2 8 chunks +39 lines, -10 lines 0 comments Download
M chrome/app/chrome_dll_main.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/memory_purger.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 4 chunks +21 lines, -9 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/interactive_ui/interactive_ui_tests.gypi View 1 2 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
dank
Still have to figure out the _set_new_mode() link error -- seems one environment declares it ...
11 years ago (2009-12-03 00:39:17 UTC) #1
bradn
LGTM, other than one concern http://codereview.chromium.org/455037/diff/2001/3007 File build/common.gypi (right): http://codereview.chromium.org/455037/diff/2001/3007#newcode873 build/common.gypi:873: 'msvs_disabled_warnings': [4396, 4503, 4819, ...
11 years ago (2009-12-03 00:54:51 UTC) #2
willchan no longer on Chromium
I'm taking a peek right now. I don't think we should be using the name ...
11 years ago (2009-12-03 01:00:51 UTC) #3
willchan no longer on Chromium
Skimmed through it now. Everything else seems reasonable to me.
11 years ago (2009-12-03 01:03:24 UTC) #4
dank
Please have another look. I changed the variable name, made the doc more precise, fixed ...
11 years ago (2009-12-03 18:38:20 UTC) #5
dank
Trybots happy. OK to commit?
11 years ago (2009-12-03 21:00:09 UTC) #6
willchan no longer on Chromium
11 years ago (2009-12-03 21:01:44 UTC) #7
Fine by me.

On Thu, Dec 3, 2009 at 1:00 PM,  <dank@chromium.org> wrote:
> Trybots happy.  OK to commit?
>
> http://codereview.chromium.org/455037
>

Powered by Google App Engine
This is Rietveld 408576698