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

Issue 1835433002: GN: Force use_allocator="none" in NaCl toolchains (Closed)

Created:
4 years, 9 months ago by Roland McGrath
Modified:
4 years, 9 months ago
CC:
chromium-reviews, wfh+watch_chromium.org, Dai Mikurube (NOT FULLTIME)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Force use_allocator="none" in NaCl toolchains Heretofore, the use_allocator build argument has been effectively ignored within NaCl toolchains by dint of the 'if (!is_nacl)' around the contents of //base/allocator:allocator. However, configs that test the use_allocator value have not had equivalent is_nacl exceptions. The result is that tcmalloc is never built in NaCl toolchains but other parts of the code think it has been. Notably, //build/config:feature_flags fails to #define NO_TCMALLOC. Hence, code testing NO_TCMALLOC wrongly concludes it can call entry points supplied by tcmalloc. This broke the enable_profiling=true build of some targets in the newlib_pnacl_nonsfi toolchain, because //base/debug/profiler.cc tries to use profiling-related tcmalloc entry points. So this change removes that is_nacl kludge from //base/allocator and instead wires up NaCl toolchains to force a setting of use_allocator="none" via toolchain_args(). BUG=596918 R=dpranke@chromium.org, phosek@chromium.org Committed: https://crrev.com/ee80d85ca30c60a5167ef6849157918bc01d757c Cr-Commit-Position: refs/heads/master@{#383471}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -11 lines) Patch
M base/allocator/BUILD.gn View 1 chunk +9 lines, -11 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 1 chunk +1 line, -0 lines 0 comments Download
M build/toolchain/nacl_toolchain.gni View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
Roland McGrath
4 years, 9 months ago (2016-03-24 22:31:12 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1835433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1835433002/1
4 years, 9 months ago (2016-03-24 22:32:47 UTC) #3
Dirk Pranke
lgtm
4 years, 9 months ago (2016-03-24 22:57:40 UTC) #4
Roland McGrath
wfh: OWNERS review for base/allocator/ please Thanks, Roland
4 years, 9 months ago (2016-03-24 22:59:49 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-24 23:19:45 UTC) #9
Petr Hosek
lgtm
4 years, 9 months ago (2016-03-25 07:08:48 UTC) #10
Will Harris
On 2016/03/25 07:08:48, Petr Hosek wrote: > lgtm lgtm
4 years, 9 months ago (2016-03-27 17:47:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1835433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1835433002/1
4 years, 9 months ago (2016-03-27 17:49:43 UTC) #13
Will Harris
I need to look at this a bit closer, need to make sure that we're ...
4 years, 9 months ago (2016-03-27 18:31:46 UTC) #15
Will Harris
lgtm again - I tested both patches together and allocator shim enabled, and it all ...
4 years, 9 months ago (2016-03-27 20:14:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1835433002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1835433002/1
4 years, 9 months ago (2016-03-27 20:14:37 UTC) #18
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-27 20:19:08 UTC) #19
commit-bot: I haz the power
4 years, 9 months ago (2016-03-27 20:20:18 UTC) #21
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ee80d85ca30c60a5167ef6849157918bc01d757c
Cr-Commit-Position: refs/heads/master@{#383471}

Powered by Google App Engine
This is Rietveld 408576698